-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (55 loc) · 1.75 KB
/
default.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
63
64
65
66
67
68
69
70
71
72
73
name: CI Process
on: [ push ]
jobs:
phpstan:
runs-on: ubuntu-20.04
name: "PHPStan"
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: "Switch default PHP Version to 8.1"
run: sudo update-alternatives --set php /usr/bin/php8.1
- name: "Install Composer dependencies"
run: composer install
- name: "PHPStan"
run: vendor/bin/phpstan
composer_normalize:
runs-on: ubuntu-20.04
name: "composer normalize"
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: "Switch default PHP Version to 8.1"
run: sudo update-alternatives --set php /usr/bin/php8.1
- name: "Install Composer dependencies"
run: composer install
- name: "Normalize"
run: composer normalize
phpunit81:
runs-on: ubuntu-20.04
name: "PHPUnit with PHP 8.1"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: "Switch default PHP Version to 8.1"
run: sudo update-alternatives --set php /usr/bin/php8.1
- name: "Print PHP version"
run: php --version
- name: "Install Composer dependencies"
run: composer install
- name: "PHPUnit"
run: vendor/bin/phpunit
phpunit82:
runs-on: ubuntu-20.04
name: "PHPUnit with PHP 8.2"
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: "Switch default PHP Version to 8.2"
run: sudo update-alternatives --set php /usr/bin/php8.2
- name: "Print PHP version"
run: php --version
- name: "Install Composer dependencies"
run: composer install
- name: "PHPUnit"
run: vendor/bin/phpunit