-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (45 loc) · 1.29 KB
/
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
39
40
41
42
43
44
45
46
47
48
name: Continuous Integration
on: [push, pull_request]
jobs:
linter:
name: Code style
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- run: composer install --prefer-dist --no-interaction
- run: bin/php-cs-fixer fix --ansi --dry-run --using-cache=no --verbose
atoum-tests:
name: Atoum tests
runs-on: ubuntu-20.04
strategy:
matrix:
version: [ 8.1, 8.2 ]
flags: [ '', '--prefer-lowest' ]
fail-fast: false
steps:
- uses: actions/checkout@master
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.version }}
coverage: xdebug2
- run: composer update --prefer-dist --no-interaction ${{ matrix.flags }}
- run: bin/atoum
phpstan:
name: PHPStan checks
runs-on: ubuntu-20.04
strategy:
matrix:
version: [ 8.1, 8.2 ]
flags: [ '', '--prefer-lowest' ]
fail-fast: false
steps:
- uses: actions/checkout@master
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.version }}
coverage: xdebug2
- run: composer update --prefer-dist --no-interaction ${{ matrix.flags }}
- run: bin/phpstan