@@ -19,22 +19,23 @@ jobs:
1919 name : Build
2020 steps :
2121 - name : Checkout
22- uses : actions/checkout@v2
22+ uses : actions/checkout@v4
2323 - name : Setup node
24- uses : actions/setup-node@v2-beta
24+ uses : actions/setup-node@v4
2525 with :
2626 node-version : ' 20'
2727 - name : node_modules cache
28- uses : actions/cache@v2
28+ uses : actions/cache@v4
2929 id : node_modules_cache
3030 with :
3131 path : ./node_modules
32- key : ${{ runner.os }}-20-node_modules-${{ hashFiles('yarn.lock') }}
32+ key : ${{ runner.os }}-20-11-7- node_modules-${{ hashFiles('yarn.lock') }}
3333 restore-keys : |
34- ${{ runner.os }}-20-node_modules-
34+ ${{ runner.os }}-20-11-7-node_modules-
35+ ${{ runner.os }}-20-
3536 - name : Yarn offline cache
3637 if : steps.node_modules_cache.outputs.cache-hit != 'true'
37- uses : actions/cache@v2
38+ uses : actions/cache@v4
3839 with :
3940 path : ~/.npm-packages-offline-cache
4041 key : yarn-offline-${{ hashFiles('**/yarn.lock') }}
4950 id : yarn-pack-dir
5051 run : ./build.sh
5152 - name : ' Upload Artifact'
52- uses : actions/upload-artifact@v2
53+ uses : actions/upload-artifact@v4
5354 with :
5455 name : rxfire-${{ github.run_id }}
5556 path : dist
@@ -61,38 +62,38 @@ jobs:
6162 strategy :
6263 matrix :
6364 node : ["20"]
64- firebase : ["9", "10"]
65+ firebase : ["9", "10", "11" ]
6566 rxjs : ["6", "7"]
6667 fail-fast : false
6768 name : Test firebase@${{ matrix.firebase }} rxjs@${{ matrix.rxjs }} on Node.js ${{ matrix.node }}
6869 steps :
6970 - name : Checkout
70- uses : actions/checkout@v2
71+ uses : actions/checkout@v4
7172 - name : Setup node
72- uses : actions/setup-node@v2-beta
73+ uses : actions/setup-node@v4
7374 with :
7475 node-version : ${{ matrix.node }}
7576 check-latest : true
7677 - name : node_modules cache
7778 id : node_modules_cache
78- uses : actions/cache@v2
79+ uses : actions/cache@v4
7980 with :
8081 path : ./node_modules
8182 key : ${{ runner.os }}-${{ matrix.node }}-${{ matrix.firebase }}-${{ matrix.rxjs }}-node_modules-${{ hashFiles('yarn.lock') }}
8283 restore-keys : |
8384 ${{ runner.os }}-${{ matrix.node }}-${{ matrix.firebase }}-${{ matrix.rxjs }}-node_modules-
84- ${{ runner.os }}-${{ matrix.node }}-node_modules-
85+ ${{ runner.os }}-${{ matrix.node }}-
8586 - name : test/functions node_modules cache
8687 id : functions_node_modules_cache
87- uses : actions/cache@v2
88+ uses : actions/cache@v4
8889 with :
8990 path : ./test/functions/node_modules
9091 key : ${{ runner.os }}-${{ matrix.node }}-functions_node_modules-${{ hashFiles('test/functions/yarn.lock') }}
9192 restore-keys : |
9293 ${{ runner.os }}-${{ matrix.node }}-functions_node_modules-
9394 - name : Yarn offline cache
9495 if : steps.node_modules_cache.outputs.cache-hit != 'true' || steps.functions_node_modules_cache.outputs.cache-hit != 'true'
95- uses : actions/cache@v2
96+ uses : actions/cache@v4
9697 with :
9798 path : ~/.npm-packages-offline-cache
9899 key : yarn-offline-${{ hashFiles('**/yarn.lock') }}
@@ -110,46 +111,40 @@ jobs:
110111 cd test/functions
111112 yarn install --frozen-lockfile --prefer-offline
112113 - name : Firebase emulator cache
113- uses : actions/cache@v2
114+ uses : actions/cache@v4
114115 with :
115116 path : ~/.cache/firebase/emulators
116117 key : firebase_emulators
117118 - name : ' Download Artifacts'
118- uses : actions/download-artifact@v2
119+ uses : actions/download-artifact@v4
119120 - name : Run tests
120121 run : |
121122 mv rxfire-${{ github.run_id }} dist
122123 yarn test
123124
124125 lint :
125126 runs-on : ubuntu-latest
126- strategy :
127- matrix :
128- node : ["20"]
129- firebase : ["9", "10"]
130- rxjs : ["7"]
131- fail-fast : false
132127 name : Lint
133128 steps :
134129 - name : Checkout
135- uses : actions/checkout@v2
130+ uses : actions/checkout@v4
136131 - name : Setup node
137- uses : actions/setup-node@v2-beta
132+ uses : actions/setup-node@v4
138133 with :
139- node-version : ${{ matrix.node }}
134+ node-version : " 20 "
140135 check-latest : true
141136 - name : node_modules cache
142137 id : node_modules_cache
143- uses : actions/cache@v2
138+ uses : actions/cache@v4
144139 with :
145140 path : ./node_modules
146- key : ${{ runner.os }}-${{ matrix.node }}-${{ matrix.firebase }}-${{ matrix.rxjs }} -node_modules-${{ hashFiles('yarn.lock') }}
141+ key : ${{ runner.os }}-20-11-7 -node_modules-${{ hashFiles('yarn.lock') }}
147142 restore-keys : |
148- ${{ runner.os }}-${{ matrix.node }}-${{ matrix.firebase }}-${{ matrix.rxjs }} -node_modules-
149- ${{ runner.os }}-${{ matrix.node }}-node_modules -
143+ ${{ runner.os }}-20-11-7 -node_modules-
144+ ${{ runner.os }}-20 -
150145 - name : Yarn offline cache
151146 if : steps.node_modules_cache.outputs.cache-hit != 'true' || steps.functions_node_modules_cache.outputs.cache-hit != 'true'
152- uses : actions/cache@v2
147+ uses : actions/cache@v4
153148 with :
154149 path : ~/.npm-packages-offline-cache
155150 key : yarn-offline-${{ hashFiles('**/yarn.lock') }}
@@ -159,7 +154,6 @@ jobs:
159154 run : |
160155 yarn config set yarn-offline-mirror ~/.npm-packages-offline-cache
161156 yarn install --frozen-lockfile --prefer-offline
162- yarn add --dev firebase@${{ matrix.firebase }} rxjs@${{ matrix.rxjs }} --prefer-offline
163157 - name : Run lint
164158 run : |
165159 yarn lint
@@ -171,12 +165,12 @@ jobs:
171165 if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
172166 steps :
173167 - name : Setup node
174- uses : actions/setup-node@v2-beta
168+ uses : actions/setup-node@v4
175169 with :
176170 node-version : ' 20'
177171 registry-url : ' https://wombat-dressing-room.appspot.com'
178172 - name : ' Download Artifacts'
179- uses : actions/download-artifact@v2
173+ uses : actions/download-artifact@v4
180174 - name : Publish
181175 run : |
182176 cd ./rxfire-${{ github.run_id }}
0 commit comments