-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.05 KB
/
qa.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
39
40
41
42
43
44
name: QA
on:
workflow_dispatch:
push:
branches: [ main, '[0-9]+.[0-9]' ]
pull_request:
permissions:
contents: read
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-php
with:
php-version: '8.1'
- name: Static Code Analysis with phpstan
run: ./scripts/analyse
shell: bash
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.1', '8.2']
testsuite: ['unit', 'integration']
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-php
with:
php-version: ${{ matrix.php-version }}
- name: Testsuite "${{ matrix.testsuite }}" with phpunit
run: |
./scripts/test --testsuite ${{ matrix.testsuite }}