diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..86040f5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + tests: + runs-on: 'ubuntu-latest' + strategy: + matrix: + php-version: ['7.4', '8.0', '8.1', '8.2'] + name: Test for PHP Version ${{ matrix.php-version }} + steps: + - uses: actions/checkout@v3 + + - uses: php-actions/composer@v6 + with: + php_version: ${{ matrix.php-version }} + + - uses: php-actions/phpunit@master + with: + bootstrap: vendor/autoload.php + configuration: phpunit.xml + php_version: ${{ matrix.php-version }} + version: 9 + diff --git a/phpunit.xml b/phpunit.xml index af4b145..555cf6d 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,23 +1,15 @@ - - - - ./tests/Unit - - - - - ./src - - - + + + + ./src + + + + + ./tests/Unit + + +