Bump shivammathur/setup-php from 2.31.1 to 2.32.0 (#330) #393
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
paths: | |
- "**.php" | |
- ".github/workflows/test.yml" | |
push: | |
branches: [main] | |
paths: | |
- "**.php" | |
- ".github/workflows/test.yml" | |
jobs: | |
test: | |
name: PHPUnit | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0 | |
with: | |
php-version: '8.2' | |
coverage: xdebug | |
extensions: mbstring | |
- name: Setup problem matchers for PHP | |
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
- name: Setup problem matchers for PHPUnit | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: "Validate composer.json and composer.lock" | |
run: "composer validate --no-check-publish" | |
- name: Install dependencies with composer | |
run: composer install --prefer-dist | |
- name: Run phpunit | |
run: ./vendor/bin/phpunit --coverage-clover=coverage.xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |