@@ -12,21 +12,21 @@ permissions:
1212 contents : read
1313
1414env :
15- NODE_VERSION : 20 .x
15+ NODE_VERSION : 22 .x
1616
1717jobs :
1818 build-and-test :
1919 runs-on : ubuntu-latest
2020 name : |
21- ${{ matrix.BROWSER }} | ${{ matrix.JQUERYS .name }}
21+ ${{ matrix.BROWSER }} | ${{ matrix.CONFIGS .name }}
2222 strategy :
2323 fail-fast : false
2424 matrix :
2525 BROWSER : [chrome, firefox]
26- JQUERYS :
27- - versions : --jquery git --jquery 3.x-git
26+ CONFIGS :
27+ - config : jtr- git.yml
2828 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
3030 name : jQuery stable
3131
3232 steps :
3939 node-version : ${{ env.NODE_VERSION }}
4040
4141 - name : Cache
42- uses : actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
42+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
4343 with :
4444 path : ~/.npm
4545 key : ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
@@ -57,21 +57,21 @@ jobs:
5757
5858 - name : Test
5959 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 }}
6363
6464 edge :
6565 runs-on : windows-latest
6666 name : |
67- edge | ${{ matrix.JQUERYS .name }}
67+ edge | ${{ matrix.CONFIGS .name }}
6868 strategy :
6969 fail-fast : false
7070 matrix :
71- JQUERYS :
72- - versions : --jquery git --jquery 3.x-git
71+ CONFIGS :
72+ - config : jtr- git.yml
7373 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
7575 name : jQuery stable
7676 steps :
7777 - name : Checkout
8383 node-version : ${{ env.NODE_VERSION }}
8484
8585 - name : Cache
86- uses : actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
86+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
8787 with :
8888 path : ~/.npm
8989 key : ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
@@ -97,22 +97,19 @@ jobs:
9797 run : npm run build
9898
9999 - 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 }}
104101
105102 safari :
106103 runs-on : macos-latest
107104 name : |
108- safari | ${{ matrix.JQUERYS .name }}
105+ safari | ${{ matrix.CONFIGS .name }}
109106 strategy :
110107 fail-fast : false
111108 matrix :
112- JQUERYS :
113- - versions : --jquery git --jquery 3.x-git
109+ CONFIGS :
110+ - config : jtr- git.yml
114111 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
116113 name : jQuery stable
117114 steps :
118115 - name : Checkout
@@ -124,7 +121,7 @@ jobs:
124121 node-version : ${{ env.NODE_VERSION }}
125122
126123 - name : Cache
127- uses : actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
124+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
128125 with :
129126 path : ~/.npm
130127 key : ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
@@ -138,7 +135,4 @@ jobs:
138135 run : npm run build
139136
140137 - 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