-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (42 loc) · 1.2 KB
/
qa.yaml
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
45
46
47
48
49
50
51
52
53
54
55
name: Tests
on:
pull_request:
push:
branches:
- master
jobs:
qa:
strategy:
matrix:
php: [ '8.0','8.1','8.2','8.3' ]
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl
coverage: xdebug
tools: composer:v2
- uses: actions/checkout@v3
- name: Download phing
run: mkdir bin && curl -L -C - -s -S -o bin/phing https://github.com/phingofficial/phing/releases/download/3.0.0-rc6/phing-3.0.0-RC6.phar && chmod +x bin/phing
- name: composer:validate
run: bin/phing composer:validate
- name: composer:install
run: bin/phing composer:install
- name: php:lint
run: bin/phing php:lint
- name: cs:fix
run: bin/phing cs:fix
- name: cs:check
run: bin/phing cs:check
- name: phpstan:analyze
run: bin/phing phpstan:analyze
- uses: isbang/[email protected]
with:
compose-file: "./compose.yaml"
down-flags: "--volumes"
- name: phpunit:run
run: bin/phing phpunit:run