Skip to content

Merge pull request #16 from script-development/ci-add-ci-passed-aggre… #44

Merge pull request #16 from script-development/ci-add-ci-passed-aggre…

Merge pull request #16 from script-development/ci-add-ci-passed-aggre… #44

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.4', '8.5']
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@728c6c6b8cf02c2e48117716a91ee48313958a19 # v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction
- name: Audit dependencies
run: composer audit
- name: Format check
run: composer format:check
- name: Static analysis
run: composer phpstan
- name: Tests
run: composer test
# Aggregate tracked by the town-crier trial (TC-0069), intended as the single
# required check (the matrix legs stop being individually required).
ci-passed:
name: ci-passed
runs-on: ubuntu-latest
needs: [check]
if: always()
steps:
- name: Verify all lanes passed
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: |
echo "One or more CI lanes did not pass."
exit 1