Skip to content

Commit 26907cb

Browse files
committed
Tests: conslidate GH actions runs; separate git & stable jQuery versions
- also add hard retries to runs
1 parent 0326f1e commit 26907cb

File tree

1 file changed

+33
-27
lines changed

1 file changed

+33
-27
lines changed

.github/workflows/node.js.yml

+33-27
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@ env:
1717
jobs:
1818
build-and-test:
1919
runs-on: ubuntu-latest
20-
name: ${{ matrix.BROWSER }} - jQuery ${{ matrix.JQUERY }}
20+
name: |
21+
${{ matrix.BROWSER }} | ${{ matrix.JQUERYS.name }}
2122
strategy:
2223
fail-fast: false
2324
matrix:
2425
BROWSER: [chrome, firefox]
25-
JQUERY:
26-
- "git"
27-
- "3.x-git"
28-
- "3.7.1"
29-
- "3.6.4"
30-
- "2.2.4"
31-
- "1.12.4"
26+
JQUERYS:
27+
- versions: --jquery git --jquery 3.x-git
28+
name: jQuery git
29+
- versions: --jquery 3.7.1 --jquery 3.6.4 --jquery 2.2.4 --jquery 1.12.4
30+
name: jQuery stable
3231

3332
steps:
3433
- name: Checkout
@@ -57,21 +56,23 @@ jobs:
5756
run: npm run build
5857

5958
- name: Test
60-
run: npm run test:unit -- -h -b ${{ matrix.BROWSER }} --jquery ${{ matrix.JQUERY }} --retries 3
59+
run: |
60+
npm run test:unit -- -h -b ${{ matrix.BROWSER }} \
61+
${{ matrix.JQUERYS.versions }} \
62+
--retries 3 --hard-retries 1
6163
6264
edge:
6365
runs-on: windows-latest
64-
name: edge - jQuery ${{ matrix.JQUERY }}
66+
name: |
67+
edge | ${{ matrix.JQUERYS.name }}
6568
strategy:
6669
fail-fast: false
6770
matrix:
68-
JQUERY:
69-
- "git"
70-
- "3.x-git"
71-
- "3.7.1"
72-
- "3.6.4"
73-
- "2.2.4"
74-
- "1.12.4"
71+
JQUERYS:
72+
- versions: --jquery git --jquery 3.x-git
73+
name: jQuery git
74+
- versions: --jquery 3.7.1 --jquery 3.6.4 --jquery 2.2.4 --jquery 1.12.4
75+
name: jQuery stable
7576
steps:
7677
- name: Checkout
7778
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
@@ -96,21 +97,23 @@ jobs:
9697
run: npm run build
9798

9899
- name: Test
99-
run: npm run test:unit -- -h -b edge --jquery ${{ matrix.JQUERY }} --retries 3
100+
run: |
101+
npm run test:unit -- -h -b edge `
102+
${{ matrix.JQUERYS.versions }} `
103+
--retries 3 --hard-retries 1
100104
101105
safari:
102106
runs-on: macos-latest
103-
name: safari - jQuery ${{ matrix.JQUERY }}
107+
name: |
108+
safari | ${{ matrix.JQUERYS.name }}
104109
strategy:
105110
fail-fast: false
106111
matrix:
107-
JQUERY:
108-
- "git"
109-
- "3.x-git"
110-
- "3.7.1"
111-
- "3.6.4"
112-
- "2.2.4"
113-
- "1.12.4"
112+
JQUERYS:
113+
- versions: --jquery git --jquery 3.x-git
114+
name: jQuery git
115+
- versions: --jquery 3.7.1 --jquery 3.6.4 --jquery 2.2.4 --jquery 1.12.4
116+
name: jQuery stable
114117
steps:
115118
- name: Checkout
116119
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
@@ -135,4 +138,7 @@ jobs:
135138
run: npm run build
136139

137140
- name: Test
138-
run: npm run test:unit -- -b safari --jquery ${{ matrix.JQUERY }} --retries 3
141+
run: |
142+
npm run test:unit -- -b safari \
143+
${{ matrix.JQUERYS.versions }} \
144+
--retries 3 --hard-retries 1

0 commit comments

Comments
 (0)