Skip to content

Commit

Permalink
Merge pull request #15 from donquixote/issue-14-phpunit-github-actions
Browse files Browse the repository at this point in the history
Issue #14: Require phpunit, add github action.
  • Loading branch information
donquixote authored Oct 27, 2024
2 parents 09c70b4 + a393f6a commit c6806fb
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI Packages

on:
- push

jobs:
tests:
name: Tests
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [7.4]

steps:
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
# @todo Review which extensions are needed.
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd
coverage: none

- run: composer install --no-interaction

- run: vendor/bin/phpunit
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
],
"autoload": {
"psr-4": { "Donquixote\\Cellbrush\\": "src/" }
},
"require-dev": {
"phpunit/phpunit": "^5"
}
}

0 comments on commit c6806fb

Please sign in to comment.