Skip to content

Commit c1aa0a5

Browse files
authored
Update testing (#861)
* Update Github Actions to test more
1 parent 90d6795 commit c1aa0a5

File tree

1 file changed

+113
-4
lines changed

1 file changed

+113
-4
lines changed

.github/workflows/build-2.x.yml

Lines changed: 113 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,124 @@ jobs:
1919
build:
2020
# The type of runner that the job will run on
2121
runs-on: ubuntu-latest
22+
continue-on-error: ${{ matrix.allowed_failure }}
2223
strategy:
24+
fail-fast: false
2325
matrix:
2426
php-versions: ["7.3", "7.4"]
2527
test-suite: ["kernel", "functional", "functional-javascript"]
26-
drupal-version: ["8.9.11", "9.1.5"]
27-
28-
name: PHP ${{ matrix.php-versions }} drupal ${{ matrix.drupal-version }} test-suite ${{ matrix.test-suite }}
28+
drupal-version: ["9.3.x", "9.4.x-dev"]
29+
allowed_failure: [false]
30+
mysql: ["5.7"]
31+
# include experimental parts
32+
include:
33+
# 9.3.x on PHP 8.0
34+
- drupal-version: '9.3.x'
35+
php-versions: '8.0'
36+
mysql: "8.0"
37+
test-suite: "kernel"
38+
allowed_failure: true
39+
- drupal-version: '9.3.x'
40+
php-versions: '8.0'
41+
mysql: "8.0"
42+
test-suite: "functional"
43+
allowed_failure: true
44+
- drupal-version: '9.3.x'
45+
php-versions: '8.0'
46+
mysql: "8.0"
47+
test-suite: "functional-javascript"
48+
allowed_failure: true
49+
# 9.3.x on PHP 8.1
50+
- drupal-version: '9.3.x'
51+
php-versions: '8.1'
52+
mysql: "8.0"
53+
test-suite: "kernel"
54+
allowed_failure: true
55+
- drupal-version: '9.3.x'
56+
php-versions: '8.1'
57+
mysql: "8.0"
58+
test-suite: "functional"
59+
allowed_failure: true
60+
- drupal-version: '9.3.x'
61+
php-versions: '8.1'
62+
mysql: "8.0"
63+
test-suite: "functional-javascript"
64+
allowed_failure: true
65+
# 9.4.x-dev on PHP "8.0"
66+
- drupal-version: '9.4.x-dev'
67+
php-versions: '8.0'
68+
mysql: "8.0"
69+
test-suite: "kernel"
70+
allowed_failure: true
71+
- drupal-version: '9.4.x-dev'
72+
php-versions: '8.0'
73+
mysql: "8.0"
74+
test-suite: "functional"
75+
allowed_failure: true
76+
- drupal-version: '9.4.x-dev'
77+
php-versions: '8.0'
78+
mysql: "8.0"
79+
test-suite: "functional-javascript"
80+
allowed_failure: true
81+
- drupal-version: '10.0.x-dev'
82+
php-versions: '8.0'
83+
mysql: "8.0"
84+
test-suite: "kernel"
85+
allowed_failure: true
86+
# 9.4.x-dev on PHP 8.1
87+
- drupal-version: '9.4.x-dev'
88+
php-versions: '8.1'
89+
mysql: "8.0"
90+
test-suite: "kernel"
91+
allowed_failure: true
92+
- drupal-version: '9.4.x-dev'
93+
php-versions: '8.1'
94+
mysql: "8.0"
95+
test-suite: "functional"
96+
allowed_failure: true
97+
- drupal-version: '9.4.x-dev'
98+
php-versions: '8.1'
99+
mysql: "8.0"
100+
test-suite: "functional-javascript"
101+
allowed_failure: true
102+
# 10.0.x-dev on PHP 8.0
103+
- drupal-version: '10.0.x-dev'
104+
php-versions: '8.0'
105+
mysql: "8.0"
106+
test-suite: "kernel"
107+
allowed_failure: true
108+
- drupal-version: '10.0.x-dev'
109+
php-versions: '8.0'
110+
mysql: "8.0"
111+
test-suite: "functional"
112+
allowed_failure: true
113+
- drupal-version: '10.0.x-dev'
114+
php-versions: '8.0'
115+
mysql: "8.0"
116+
test-suite: "functional-javascript"
117+
allowed_failure: true
118+
# 10.0.x-dev on PHP 8.1
119+
- drupal-version: '10.0.x-dev'
120+
php-versions: '8.1'
121+
mysql: "8.0"
122+
test-suite: "kernel"
123+
allowed_failure: true
124+
- drupal-version: '10.0.x-dev'
125+
php-versions: '8.1'
126+
mysql: "8.0"
127+
test-suite: "functional"
128+
allowed_failure: true
129+
- drupal-version: '10.0.x-dev'
130+
php-versions: '8.1'
131+
mysql: "8.0"
132+
test-suite: "functional-javascript"
133+
allowed_failure: true
134+
135+
name: PHP ${{ matrix.php-versions }} | drupal ${{ matrix.drupal-version }} | mysql ${{ matrix.mysql }} | test-suite ${{ matrix.test-suite }}
29136

30137
services:
31138
mysql:
32-
image: mysql:5.7
139+
image: mysql:${{ matrix.mysql }}
33140
env:
34141
MYSQL_ALLOW_EMPTY_PASSWORD: yes
35142
MYSQL_DATABASE: drupal
@@ -44,6 +151,7 @@ jobs:
44151

45152
# Steps represent a sequence of tasks that will be executed as part of the job
46153
steps:
154+
47155
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
48156
- name: Checkout code
49157
uses: actions/checkout@v2
@@ -66,6 +174,7 @@ jobs:
66174
- name: Setup Mysql client
67175
run: |
68176
sudo apt-get update
177+
sudo apt-get remove -y mysql-client mysql-common
69178
sudo apt-get install -y mysql-client
70179
71180
- name: Set environment variables

0 commit comments

Comments
 (0)