Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e9d5996

Browse filesBrowse files
committed
Add CI
1 parent 9a6c0e8 commit e9d5996
Copy full SHA for e9d5996

1 file changed

+106Lines changed: 106 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/ci.yml‎

Copy file name to clipboard
+106Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: "CI"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- 'main'
8+
9+
env:
10+
fail-fast: true
11+
TZ: "Europe/Paris"
12+
13+
jobs:
14+
phpunit:
15+
name: "PHPUnit (${{ matrix.php-version }})"
16+
17+
runs-on: "ubuntu-latest"
18+
19+
strategy:
20+
matrix:
21+
php-version:
22+
- '8.1'
23+
- '8.2'
24+
25+
steps:
26+
-
27+
name: "Checkout code"
28+
uses: "actions/checkout@v2"
29+
-
30+
name: "Install PHP"
31+
uses: "shivammathur/setup-php@v2"
32+
with:
33+
coverage: "none"
34+
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
35+
php-version: "${{ matrix.php-version }}"
36+
tools: composer:v2
37+
38+
-
39+
name: "Composer install"
40+
uses: "ramsey/composer-install@v1"
41+
with:
42+
composer-options: "--no-scripts"
43+
-
44+
name: "Run PHPUnit"
45+
run: "php -dzend.assertions=1 vendor/bin/phpunit"
46+
phpstan:
47+
name: "PHPStan (${{ matrix.php-version }})"
48+
49+
runs-on: "ubuntu-latest"
50+
51+
strategy:
52+
matrix:
53+
php-version:
54+
- '8.1'
55+
56+
steps:
57+
-
58+
name: "Checkout code"
59+
uses: "actions/checkout@v2"
60+
-
61+
name: "Install PHP"
62+
uses: "shivammathur/setup-php@v2"
63+
with:
64+
coverage: "none"
65+
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
66+
php-version: "${{ matrix.php-version }}"
67+
tools: composer:v2
68+
69+
-
70+
name: "Composer install"
71+
uses: "ramsey/composer-install@v1"
72+
with:
73+
composer-options: "--no-scripts"
74+
-
75+
name: "Run PHPStan"
76+
run: "vendor/bin/phpstan analyse"
77+
php-cs-fixer:
78+
name: "PHP-CS-Fixer (${{ matrix.php-version }})"
79+
80+
runs-on: "ubuntu-latest"
81+
82+
strategy:
83+
matrix:
84+
php-version:
85+
- '8.1'
86+
steps:
87+
-
88+
name: "Checkout code"
89+
uses: "actions/checkout@v2"
90+
-
91+
name: "Install PHP"
92+
uses: "shivammathur/setup-php@v2"
93+
with:
94+
coverage: "none"
95+
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
96+
php-version: "${{ matrix.php-version }}"
97+
tools: composer:v2
98+
99+
-
100+
name: "Composer install"
101+
uses: "ramsey/composer-install@v1"
102+
with:
103+
composer-options: "--no-scripts"
104+
-
105+
name: "Run PHP-CS_Fixer"
106+
run: "PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --diff"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.