Lint and tests workflow (#8) #5
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: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
coding-standards: | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [8.4] | |
name: Run Tests (PHP ${{ matrix.php }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none | |
- name: Install Composer dependencies | |
run: | | |
composer install --prefer-dist --no-interaction | |
- name: Run Pint | |
run: composer run lint -- --test -v | |
- name: Run unit tests | |
run: composer run tests:unit -- --stop-on-failure --stop-on-error | |
- name: Run integration tests | |
run: composer run tests:integration -- --stop-on-failure --stop-on-error |