1515 schedule :
1616 - cron : 0 0 * * 1-5
1717
18+ permissions :
19+ contents : read
20+
1821jobs :
1922 build :
2023 runs-on : ubuntu-latest
2124 name : Build
2225 steps :
2326 - name : Checkout
24- uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
27+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
28+ with :
29+ persist-credentials : false
2530 - name : Setup node
26- uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
31+ uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2732 with :
2833 node-version : ' 20'
2934 check-latest : false
30- - name : angular build cache
31- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
32- with :
33- path : ./.angular
34- key : angular-cache
35- - name : node_modules cache
36- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
37- id : node_modules_cache
38- with :
39- path : ./node_modules
40- key : ${{ runner.os }}-20-${{ hashFiles('package-lock.json') }}
41- restore-keys : |
42- ${{ runner.os }}-20-
4335 - name : Install deps
44- if : steps.node_modules_cache.outputs.cache-hit != 'true'
45- run : |
46- npm ci
36+ run : npm ci
4737 - name : Build
4838 run : ./tools/build.sh
4939 - name : ' Upload Artifact'
50- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
40+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5141 with :
5242 name : angularfire-${{ github.run_id }}
5343 path : dist
@@ -64,25 +54,18 @@ jobs:
6454 name : Test Node ${{ matrix.node }} (${{ matrix.os }})
6555 steps :
6656 - name : Checkout
67- uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
57+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
58+ with :
59+ persist-credentials : false
6860 - name : Setup node
69- uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
61+ uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
7062 with :
7163 node-version : ${{ matrix.node }}
7264 check-latest : true
73- - name : node_modules cache
74- id : node_modules_cache
75- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
76- with :
77- path : ./node_modules
78- key : ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('package-lock.json') }}
79- restore-keys : |
80- ${{ runner.os }}-${{ matrix.node }}-
8165 - name : Install deps
82- if : steps.node_modules_cache.outputs.cache-hit != 'true'
8366 run : npm ci
8467 - name : Download Artifacts
85- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
68+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
8669 with :
8770 name : angularfire-${{ github.run_id }}
8871 path : dist
@@ -106,35 +89,23 @@ jobs:
10689 fail-fast : false
10790 steps :
10891 - name : Checkout
109- uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
92+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
93+ with :
94+ persist-credentials : false
11095 - name : Setup node
111- uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
96+ uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
11297 with :
11398 node-version : 20
11499 check-latest : false
115100 - name : Setup java
116- uses : actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165
101+ uses : actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0
117102 with :
118103 distribution : ' temurin'
119104 java-version : ' 21'
120- - name : node_modules cache
121- id : node_modules_cache
122- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
123- with :
124- path : ./node_modules
125- key : ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('package-lock.json') }}
126- restore-keys : |
127- ${{ runner.os }}-${{ matrix.node }}-
128105 - name : Install deps
129- if : steps.node_modules_cache.outputs.cache-hit != 'true'
130106 run : npm ci
131- - name : Firebase emulator cache
132- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
133- with :
134- path : ~/.cache/firebase/emulators
135- key : firebase_emulators
136107 - name : Download Artifacts
137- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
108+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
138109 with :
139110 name : angularfire-${{ github.run_id }}
140111 path : dist
@@ -151,22 +122,15 @@ jobs:
151122 fail-fast : false
152123 steps :
153124 - name : Checkout
154- uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
125+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
126+ with :
127+ persist-credentials : false
155128 - name : Setup node
156- uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
129+ uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
157130 with :
158131 node-version : ${{ matrix.node }}
159132 check-latest : true
160- - name : node_modules cache
161- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
162- id : node_modules_cache
163- with :
164- path : ./node_modules
165- key : ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('package-lock.json') }}
166- restore-keys : |
167- ${{ runner.os }}-${{ matrix.node }}-
168133 - name : Install deps
169- if : steps.node_modules_cache.outputs.cache-hit != 'true'
170134 run : npm ci
171135 # - name: Lint
172136 # run: npm run lint
@@ -176,13 +140,8 @@ jobs:
176140 run : |
177141 npm run build:jasmine
178142 npm run test:node
179- - name : Firebase emulator cache
180- uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
181- with :
182- path : ~/.cache/firebase/emulators
183- key : firebase_emulators
184143 - name : Setup java
185- uses : actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165
144+ uses : actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0
186145 with :
187146 distribution : ' temurin'
188147 java-version : ' 21'
@@ -206,13 +165,13 @@ jobs:
206165 if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
207166 steps :
208167 - name : Setup node
209- uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
168+ uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
210169 with :
211170 node-version : ' 20'
212171 registry-url : ' https://registry.npmjs.org'
213172 check-latest : false
214173 - name : ' Download Artifacts'
215- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
174+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
216175 with :
217176 name : angularfire-${{ github.run_id }}
218177 path : dist
0 commit comments