@@ -26,29 +26,25 @@ jobs:
26
26
uses : actions/setup-node@v3
27
27
with :
28
28
node-version : ' 18'
29
- check-latest : true
29
+ check-latest : false
30
+ - name : angular build cache
31
+ uses : actions/cache@v3
32
+ with :
33
+ path : ./.angular
34
+ key : angular-cache
30
35
- name : node_modules cache
31
36
uses : actions/cache@v3
32
37
id : node_modules_cache
33
38
with :
34
39
path : ./node_modules
35
- key : ${{ runner.os }}-16-12-9-9-6-node_modules-${{ hashFiles('yarn.lock') }}
36
- - name : Yarn offline cache
37
- if : steps.node_modules_cache.outputs.cache-hit != 'true'
38
- uses : actions/cache@v3
39
- with :
40
- path : ~/.npm-packages-offline-cache
41
- key : yarn-offline-${{ hashFiles('**/yarn.lock') }}
40
+ key : ${{ runner.os }}-18-${{ hashFiles('package-lock.json') }}
41
+ restore-keys : |
42
+ ${{ runner.os }}-18-
42
43
- name : Install deps
43
44
if : steps.node_modules_cache.outputs.cache-hit != 'true'
44
45
run : |
45
- yarn config set ignore-engines true
46
- yarn config set yarn-offline-mirror ~/.npm-packages-offline-cache
47
- yarn config set network-timeout 300000
48
- yarn config set yarn-offline-mirror-pruning true
49
- yarn install --frozen-lockfile --prefer-offline
46
+ npm ci
50
47
- name : Build
51
- id : yarn-pack-dir
52
48
run : ./tools/build.sh
53
49
- name : ' Upload Artifact'
54
50
uses : actions/upload-artifact@v3
@@ -79,36 +75,20 @@ jobs:
79
75
uses : actions/cache@v3
80
76
with :
81
77
path : ./node_modules
82
- key : ${{ runner.os }}-${{ matrix.node }}-16-9-12-8-node_modules-${{ hashFiles('yarn.lock') }}
83
- - name : Yarn offline cache
84
- uses : actions/cache@v3
85
- with :
86
- path : ~/.npm-packages-offline-cache
87
- key : yarn-offline-${{ hashFiles('**/yarn.lock') }}
88
- - name : Configure yarn
89
- run : |
90
- yarn config set yarn-offline-mirror ~/.npm-packages-offline-cache
91
- yarn config set network-timeout 300000
92
- yarn config set ignore-engines true
93
- - name : Yarn install
78
+ key : ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('package-lock.json') }}
79
+ restore-keys : |
80
+ ${{ runner.os }}-${{ matrix.node }}-
81
+ - name : Install deps
94
82
if : steps.node_modules_cache.outputs.cache-hit != 'true'
95
- run : yarn install --frozen-lockfile --prefer-offline
83
+ run : npm ci
96
84
- name : Download Artifacts
97
85
uses : actions/download-artifact@v3
98
86
- name : Relocate Artifacts
99
87
run : mv angularfire-${{ github.run_id }} dist
100
88
- name : Test Node
101
89
run : |
102
- yarn build:jasmine
103
- yarn test:node
104
- - name : ng-build yarn install
105
- run : |
106
- cd ./test/ng-build
107
- yarn --prefer-offline
108
- - name : ng-build prerender
109
- run : |
110
- cd ./test/ng-build
111
- yarn prerender
90
+ npm run build:jasmine
91
+ npm run test:node
112
92
113
93
browser :
114
94
runs-on : ${{ matrix.os }}
@@ -122,14 +102,15 @@ jobs:
122
102
# include:
123
103
# - os: macos-latest
124
104
# browser: safari
105
+ fail-fast : false
125
106
steps :
126
107
- name : Checkout
127
108
uses : actions/checkout@v3
128
109
- name : Setup node
129
110
uses : actions/setup-node@v3
130
111
with :
131
112
node-version : 18
132
- check-latest : true
113
+ check-latest : false
133
114
- name : Setup java
134
115
uses : actions/setup-java@v3
135
116
with :
@@ -140,20 +121,12 @@ jobs:
140
121
uses : actions/cache@v3
141
122
with :
142
123
path : ./node_modules
143
- key : ${{ runner.os }}-${{ matrix.node }}-16-9-12-8-node_modules-${{ hashFiles('yarn.lock') }}
144
- - name : Yarn offline cache
145
- uses : actions/cache@v3
146
- with :
147
- path : ~/.npm-packages-offline-cache
148
- key : yarn-offline-${{ hashFiles('**/yarn.lock') }}
149
- - name : Configure yarn
150
- run : |
151
- yarn config set yarn-offline-mirror ~/.npm-packages-offline-cache
152
- yarn config set network-timeout 300000
153
- yarn config set ignore-engines true
154
- - name : Yarn install
124
+ key : ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('package-lock.json') }}
125
+ restore-keys : |
126
+ ${{ runner.os }}-${{ matrix.node }}-
127
+ - name : Install deps
155
128
if : steps.node_modules_cache.outputs.cache-hit != 'true'
156
- run : yarn install --frozen-lockfile --prefer-offline
129
+ run : npm ci
157
130
- name : Firebase emulator cache
158
131
uses : actions/cache@v3
159
132
with :
@@ -164,7 +137,7 @@ jobs:
164
137
- name : Relocate Artifacts
165
138
run : mv angularfire-${{ github.run_id }} dist
166
139
- name : Test browser
167
- run : yarn test:${{ matrix.browser }}
140
+ run : npm run test:${{ matrix.browser }}
168
141
169
142
contribute :
170
143
runs-on : ${{ matrix.os }}
@@ -187,28 +160,20 @@ jobs:
187
160
id : node_modules_cache
188
161
with :
189
162
path : ./node_modules
190
- key : ${{ runner.os }}-${{ matrix.node }}-12-9-9-6-node_modules-${{ hashFiles('yarn.lock') }}
191
- - name : Yarn offline cache
192
- if : steps.node_modules_cache.outputs.cache-hit != 'true'
193
- uses : actions/cache@v3
194
- with :
195
- path : ~/.npm-packages-offline-cache
196
- key : yarn-offline-${{ hashFiles('**/yarn.lock') }}
163
+ key : ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('package-lock.json') }}
164
+ restore-keys : |
165
+ ${{ runner.os }}-${{ matrix.node }}-
197
166
- name : Install deps
198
167
if : steps.node_modules_cache.outputs.cache-hit != 'true'
199
- run : |
200
- yarn config set yarn-offline-mirror ~/.npm-packages-offline-cache
201
- yarn config set network-timeout 300000
202
- yarn config set ignore-engines true
203
- yarn install --frozen-lockfile --prefer-offline
168
+ run : npm ci
204
169
- name : Lint
205
- run : yarn lint
170
+ run : npm run lint
206
171
- name : Build
207
- run : yarn build
172
+ run : npm run build
208
173
- name : Test Node
209
174
run : |
210
- yarn build:jasmine
211
- yarn test:node
175
+ npm run build:jasmine
176
+ npm run test:node
212
177
- name : Firebase emulator cache
213
178
uses : actions/cache@v3
214
179
with :
@@ -220,7 +185,7 @@ jobs:
220
185
distribution : ' temurin'
221
186
java-version : ' 11'
222
187
- name : Test headless
223
- run : yarn test:chrome-headless
188
+ run : npm run test:chrome-headless
224
189
# Tests are flaky on Windows
225
190
continue-on-error : ${{ matrix.os == 'windows-latest' }}
226
191
@@ -243,7 +208,7 @@ jobs:
243
208
with :
244
209
node-version : ' 18'
245
210
registry-url : ' https://registry.npmjs.org'
246
- check-latest : true
211
+ check-latest : false
247
212
- name : ' Download Artifacts'
248
213
uses : actions/download-artifact@v3
249
214
- name : Publish
0 commit comments