-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (51 loc) · 1.66 KB
/
main.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
name: CI
on:
push:
branches:
- "**"
jobs:
php83:
name: "php 8.3"
runs-on: ubuntu-latest
container: "nofutur3/php-tests:8.3"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install tools
run: phive install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A
- name: Install dependencies
run: composer install --no-interaction
- name: Run static analysis
run: vendor/bin/phpstan analyse
- name: Run tests
run: tools/phpunit test/ --bootstrap vendor/autoload.php
php82:
name: "php 8.2"
runs-on: ubuntu-latest
container: "nofutur3/php-tests:8.2"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install tools
run: phive install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A
- name: Install dependencies
run: composer install --no-interaction
- name: Chesk code style
run: tools/php-cs-fixer fix --dry-run --no-interaction
- name: Run static analysis
run: vendor/bin/phpstan analyse
- name: Run tests
run: tools/phpunit test/ --bootstrap vendor/autoload.php
php81:
name: "php 8.1"
runs-on: ubuntu-latest
container: "nofutur3/php-tests:8.1"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: composer install --no-interaction
- name: Run static analysis
run: vendor/bin/phpstan analyse
- name: Run tests
run: vendor/bin/phpunit test/