diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd02dd7..43c9694 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,16 +1,41 @@ name: CI -on: [ push ] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: - build-test: + test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php-version: + - "7.4" + - "8.0" + - "8.1" + - "8.2" + - "8.3" + - "8.4" + - "8.5" + steps: - - uses: actions/checkout@v5 - - uses: php-actions/composer@v6 - - uses: php-actions/phpunit@v4 + - name: Checkout repository + uses: actions/checkout@v7 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 with: - configuration: ./phpunit.xml - php_version: 7.4 - version: 8.5 + php-version: ${{ matrix.php-version }} + coverage: none + + - name: Composer install + run: composer install + + - name: PHPUnit + run: vendor/bin/phpunit