Skip to content

Commit 1570843

Browse files
committed
Actions adjustments
1 parent 75d1378 commit 1570843

File tree

2 files changed

+40
-37
lines changed

2 files changed

+40
-37
lines changed

.github/workflows/lint-and-analyse.yml

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,38 @@ permissions:
66
on: [push]
77

88
jobs:
9-
lint-php:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v4
13-
- name: Cache module
14-
uses: actions/cache@v4
15-
with:
16-
path: ~/.composer/cache/
17-
key: composer-cache
18-
- name: Setup PHP
19-
uses: shivammathur/setup-php@v2
20-
with:
21-
php-version: "7.4"
22-
tools: composer:v2
23-
- name: Install dependencies
24-
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
25-
- name: Lint files
26-
run: composer run phpcs
9+
lint-php:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Cache module
14+
uses: actions/cache@v4
15+
with:
16+
path: ~/.composer/cache/
17+
key: composer-cache
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: "8.2"
22+
- name: Install dependencies
23+
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
24+
- name: Lint files
25+
run: composer run phpcs
2726

28-
analyse-php:
29-
runs-on: ubuntu-latest
30-
steps:
31-
- uses: actions/checkout@v4
32-
- name: Cache module
33-
uses: actions/cache@v4
34-
with:
35-
path: ~/.composer/cache/
36-
key: composer-cache
37-
- name: Setup PHP
38-
uses: shivammathur/setup-php@v2
39-
with:
40-
php-version: "7.4"
41-
tools: composer:v2
42-
- name: Install dependencies
43-
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
44-
- name: Analyse files
45-
run: composer run phpstan
27+
analyse-php:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- name: Cache module
32+
uses: actions/cache@v4
33+
with:
34+
path: ~/.composer/cache/
35+
key: composer-cache
36+
- name: Setup PHP
37+
uses: shivammathur/setup-php@v2
38+
with:
39+
php-version: "8.2"
40+
- name: Install dependencies
41+
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
42+
- name: Analyse files
43+
run: composer run phpstan

.github/workflows/tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
test-php:
1010
name: Test on php ${{ matrix.php-version }} and ${{ matrix.os }}
1111
runs-on: ${{ matrix.os }}
12+
continue-on-error: ${{ matrix.experimental }}
1213
services:
1314
mysql:
1415
image: mysql:5.7
@@ -21,9 +22,13 @@ jobs:
2122
- "3306:3306"
2223
options: --name mysql-server --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
2324
strategy:
25+
fail-fast: false
2426
matrix:
25-
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
27+
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
2628
os: [ubuntu-latest]
29+
experimental: [false]
30+
include:
31+
- { php-version: 'nightly', os: ubuntu-latest, experimental: true }
2732
steps:
2833
- uses: actions/checkout@v4
2934
- name: Use php ${{ matrix.php-version }}

0 commit comments

Comments
 (0)