-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.54 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: QA
on: [push]
jobs:
analysis:
name: analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
tools: phpcs:3.11, php-cs-fixer:3.65, phpstan:2.0.3
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install composer dependencies
run: composer install --no-progress --prefer-dist --no-dev
- name: Check coding style with phpcs
run: |
phpcs --version
phpcs
- name: Check coding style with php-cs-fixer
run: php-cs-fixer fix --dry-run --show-progress=dots --diff -vv
env:
PHP_CS_FIXER_IGNORE_ENV: 1
- name: Run static analysis
run: |
phpstan --version
phpstan --verbose --error-format=github
testrun:
name: run with phpunit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
extensions: mbstring, bcmath, xdebug
tools: phpunit:11.5
coverage: xdebug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install composer dependencies
run: composer install --no-progress --prefer-dist --no-dev
- name: Run tests
run: phpunit