-
Notifications
You must be signed in to change notification settings - Fork 54
38 lines (29 loc) · 1014 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
testsuite:
name: all tests
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '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: ${{ matrix.php <= '8.1' }}
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: ${{ matrix.php <= '8.0' }}
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s phpstan
- name: Unit Tests
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s unit