Skip to content

CI

CI #3660

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
testsuite:
name: all tests
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
steps:
- name: Checkout ${{ github.event_name == 'workflow_dispatch' && github.head_ref || '' }}
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.head_ref || '' }}
- name: Composer install
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerUpdate
- name: CGL
if: startsWith(matrix.php, '7.4')
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s cgl -n
- name: Lint PHP
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s lint
- name: Phpstan
if: startsWith(matrix.php, '7.2')
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s phpstan
- name: Unit Tests
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s unit