v3.x: add actions #3
Workflow file for this run
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: Run PHPUnit Tests | |
on: | |
pull_request: | |
branches: [ "master", "v1.x", "v2.x" ] | |
jobs: | |
run_tests: | |
name: Run PHPUnit Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php_version: [ 8.2 ] | |
branch: [ master ] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_version }} | |
- name: Install Composer dependencies | |
run: composer install -q --no-scripts --prefer-dist | |
- name: Run PHPUnit tests | |
run: vendor/bin/phpunit tests |