@@ -21,19 +21,20 @@ jobs:
2121 browser : [safari]
2222 suite : [default, disabled, main]
2323 steps :
24- - name : Extract Week Number
25- run : echo "WEEK_NUMBER=$(date +%W)" >> $GITHUB_ENV
2624
27- - name : Checkout Branch
25+ - &checkout-branch
26+ name : Checkout Branch
2827 uses : actions/checkout@v5
2928
30- - name : Setup Node
29+ - &setup-node
30+ name : Setup Node
3131 uses : actions/setup-node@v5
3232 with :
3333 node-version-file : package.json
3434 cache : npm
3535
36- - name : Install Node Packages
36+ - &install-node-packages
37+ name : Install Node Packages
3738 run : npm ci
3839
3940 - name : Run Tests
5253 browser : [chrome, firefox]
5354 suite : [default, disabled, main]
5455 steps :
55- - name : Extract Week Number
56- run : echo "WEEK_NUMBER=$(date +%W)" >> $GITHUB_ENV
57-
58- - name : Checkout Branch
59- uses : actions/checkout@v5
60-
61- - name : Setup Node
62- uses : actions/setup-node@v5
63- with :
64- node-version-file : package.json
65- cache : npm
66-
67- - name : Install Node Packages
68- run : npm ci
69-
56+ - *checkout-branch
57+ - *setup-node
58+ - *install-node-packages
7059 - name : Run Tests
7160 run : |
7261 echo "Running in $BROWSER"
@@ -82,21 +71,13 @@ jobs:
8271 shell : [jsc, spidermonkey, v8]
8372 suite : [default, disabled, main]
8473 steps :
74+ - *checkout-branch
75+ - *setup-node
76+ - *install-node-packages
77+
8578 - name : Extract Week Number
8679 run : echo "WEEK_NUMBER=$(date +%W)" >> $GITHUB_ENV
8780
88- - name : Checkout Branch
89- uses : actions/checkout@v5
90-
91- - name : Setup Node
92- uses : actions/setup-node@v5
93- with :
94- node-version-file : package.json
95- cache : npm
96-
97- - name : Install Node Packages
98- run : npm ci
99-
10081 - name : Cache jsvu Binaries
10182 uses : actions/cache@v4
10283 with :
@@ -111,19 +92,9 @@ jobs:
11192 name : Test Build
11293 runs-on : ubuntu-latest
11394 steps :
114- - name : Checkout Branch
115- uses : actions/checkout@v4
116- with :
117- fetch-depth : ${{ github.event_name == 'pull_request' && 2 || 0 }}
118-
119- - name : Setup Node
120- uses : actions/setup-node@v4
121- with :
122- node-version-file : package.json
123- cache : npm
124-
125- - name : Install Node Packages
126- run : npm ci
95+ - *checkout-branch
96+ - *setup-node
97+ - *install-node-packages
12798
12899 - name : Run Build
129100 run : |
0 commit comments