# .github/workflows/tests.yml name: tests on: push: branches: - master pull_request: jobs: phpunit: runs-on: ubuntu-latest strategy: fail-fast: false matrix: php: [ '8.0', '8.1', '8.2', '8.3', '8.4' ] steps: - name: Checkout uses: actions/checkout@v5 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: mbstring - name: Install dependencies run: composer install --no-interaction --prefer-dist --no-progress - name: Run PHPUnit run: ./vendor/bin/phpunit php-cs-fixer: name: PHP-CS-Fixer runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - uses: actions/cache@v4 with: path: .php-cs-fixer.cache key: ${{ runner.OS }}-${{ github.repository }}-phpcsfixer-${{ github.sha }} restore-keys: | ${{ runner.OS }}-${{ github.repository }}-phpcsfixer- - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga with: args: -v --diff --dry-run