-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (52 loc) · 1.74 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
49
50
51
52
53
54
55
56
name: Continious Integration
on: push
jobs:
psalm:
name: Psalm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: shivammathur/setup-php@master
with:
php-version: '8.1'
- name: Install dependencies
run: composer update
- name: Run Psalm
run: vendor/bin/psalm
phpunit:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.1', '8.2', '8.3' ]
prefer-lowest: [ '', '--prefer-lowest' ]
steps:
- uses: actions/checkout@master
- uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
- name: Install dependencies
run: composer update -n --prefer-dist ${{ matrix.prefer-lowest }}
- name: Run PHPUnit unit tests
run: vendor/bin/phpunit
coding_standards:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: shivammathur/setup-php@master
with:
php-version: '8.1'
- name: Install dependencies
run: composer update
- name: Run PHP-CS-Fixer
run: vendor/bin/php-cs-fixer fix --dry-run -v
check-licenses:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: shivammathur/setup-php@master
with:
php-version: '8.1'
- name: Install dependencies
run: composer update
- name: Run License Checker
run: bin/license-checker check --quiet