Use phpcs installed with composer instead of php-actions/phpcs #110
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: Unit tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup composer | |
uses: php-actions/composer@v6 | |
with: | |
php_version: 8.3 | |
- name: Run PHPUnit Tests | |
uses: php-actions/phpunit@v3 | |
with: | |
args: --testdox tests | |
bootstrap: vendor/autoload.php | |
test_suffix: "Test.php" #workaround for https://github.com/php-actions/phpunit/pull/64 | |
php_version: "8.3" |