@@ -12,21 +12,21 @@ permissions:
12
12
contents : read
13
13
14
14
env :
15
- NODE_VERSION : 20 .x
15
+ NODE_VERSION : 22 .x
16
16
17
17
jobs :
18
18
build-and-test :
19
19
runs-on : ubuntu-latest
20
20
name : |
21
- ${{ matrix.BROWSER }} | ${{ matrix.JQUERYS .name }}
21
+ ${{ matrix.BROWSER }} | ${{ matrix.CONFIGS .name }}
22
22
strategy :
23
23
fail-fast : false
24
24
matrix :
25
25
BROWSER : [chrome, firefox]
26
- JQUERYS :
27
- - versions : --jquery git --jquery 3.x-git
26
+ CONFIGS :
27
+ - config : jtr- git.yml
28
28
name : jQuery git
29
- - versions : --jquery 3.7.1 --jquery 3.6.4 --jquery 2.2.4 --jquery 1.12.4
29
+ - config : jtr-stable.yml
30
30
name : jQuery stable
31
31
32
32
steps :
39
39
node-version : ${{ env.NODE_VERSION }}
40
40
41
41
- name : Cache
42
- uses : actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
42
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
43
43
with :
44
44
path : ~/.npm
45
45
key : ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
@@ -57,21 +57,21 @@ jobs:
57
57
58
58
- name : Test
59
59
run : |
60
- npm run test:unit -- -h -b ${{ matrix.BROWSER }} \
61
- ${{ matrix.JQUERYS.versions }} \
62
- --retries 3 --hard-retries 1
60
+ npm run test:unit -- \
61
+ --headless -b ${{ matrix.BROWSER }} \
62
+ -c ${{ matrix.CONFIGS.config }}
63
63
64
64
edge :
65
65
runs-on : windows-latest
66
66
name : |
67
- edge | ${{ matrix.JQUERYS .name }}
67
+ edge | ${{ matrix.CONFIGS .name }}
68
68
strategy :
69
69
fail-fast : false
70
70
matrix :
71
- JQUERYS :
72
- - versions : --jquery git --jquery 3.x-git
71
+ CONFIGS :
72
+ - config : jtr- git.yml
73
73
name : jQuery git
74
- - versions : --jquery 3.7.1 --jquery 3.6.4 --jquery 2.2.4 --jquery 1.12.4
74
+ - config : jtr-stable.yml
75
75
name : jQuery stable
76
76
steps :
77
77
- name : Checkout
83
83
node-version : ${{ env.NODE_VERSION }}
84
84
85
85
- name : Cache
86
- uses : actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
86
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
87
87
with :
88
88
path : ~/.npm
89
89
key : ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
@@ -97,22 +97,19 @@ jobs:
97
97
run : npm run build
98
98
99
99
- name : Test
100
- run : |
101
- npm run test:unit -- -h -b edge `
102
- ${{ matrix.JQUERYS.versions }} `
103
- --retries 3 --hard-retries 1
100
+ run : npm run test:unit -- -- --headless -b edge -c ${{ matrix.CONFIGS.config }}
104
101
105
102
safari :
106
103
runs-on : macos-latest
107
104
name : |
108
- safari | ${{ matrix.JQUERYS .name }}
105
+ safari | ${{ matrix.CONFIGS .name }}
109
106
strategy :
110
107
fail-fast : false
111
108
matrix :
112
- JQUERYS :
113
- - versions : --jquery git --jquery 3.x-git
109
+ CONFIGS :
110
+ - config : jtr- git.yml
114
111
name : jQuery git
115
- - versions : --jquery 3.7.1 --jquery 3.6.4 --jquery 2.2.4 --jquery 1.12.4
112
+ - config : jtr-stable.yml
116
113
name : jQuery stable
117
114
steps :
118
115
- name : Checkout
@@ -124,7 +121,7 @@ jobs:
124
121
node-version : ${{ env.NODE_VERSION }}
125
122
126
123
- name : Cache
127
- uses : actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
124
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
128
125
with :
129
126
path : ~/.npm
130
127
key : ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
@@ -138,7 +135,4 @@ jobs:
138
135
run : npm run build
139
136
140
137
- name : Test
141
- run : |
142
- npm run test:unit -- -b safari \
143
- ${{ matrix.JQUERYS.versions }} \
144
- --retries 3 --hard-retries 1
138
+ run : npm run test:unit -- -b safari -c ${{ matrix.CONFIGS.config }}
0 commit comments