Skip to content

Commit 649ef3a

Browse files
committed
fix workflow
1 parent 6a70a67 commit 649ef3a

File tree

2 files changed

+3
-40
lines changed

2 files changed

+3
-40
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -41,47 +41,10 @@ jobs:
4141
name: lib
4242
path: ${{ github.workspace }}/lib
4343
retention-days: 1
44-
node16:
45-
runs-on: ubuntu-latest
46-
timeout-minutes: 15
47-
needs: [build]
48-
env:
49-
NODE_VERSION: 16
50-
steps:
51-
- name: Сheckout repo
52-
uses: actions/checkout@v3
53-
- name: Unarchiving lib directory
54-
uses: actions/download-artifact@v3
55-
with:
56-
name: lib
57-
path: ${{ github.workspace }}/lib
58-
- name: Use Node.js ${{ env.NODE_VERSION }}
59-
uses: actions/setup-node@v3
60-
with:
61-
node-version: ${{ env.NODE_VERSION }}
62-
- name: Cache node modules
63-
uses: actions/cache@v3
64-
env:
65-
cache-name: cache-node-modules
66-
with:
67-
path: ~/.npm
68-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
69-
restore-keys: |
70-
${{ runner.os }}-build-${{ env.cache-name }}-
71-
${{ runner.os }}-build-
72-
${{ runner.os }}-
73-
- name: Install dependencies
74-
run: npm ci
75-
- name: Install emulator and test library
76-
run: sudo npm install firebase-tools -g
77-
- name: Set service account
78-
run: echo $SERVICE_ACCOUNT>serviceAccount.json
79-
- name: Run emulator
80-
run: npm run cov
8144
node18:
8245
runs-on: ubuntu-latest
8346
timeout-minutes: 15
84-
needs: [build, node16]
47+
needs: [build]
8548
env:
8649
NODE_VERSION: 18
8750
steps:
@@ -118,7 +81,7 @@ jobs:
11881
node20:
11982
runs-on: ubuntu-latest
12083
timeout-minutes: 15
121-
needs: [build, node16, node18]
84+
needs: [build, node18]
12285
env:
12386
NODE_VERSION: 20
12487
steps:

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"editor.defaultFormatter": "esbenp.prettier-vscode",
33
"editor.codeActionsOnSave": {
4-
"source.fixAll.eslint": true
4+
"source.fixAll.eslint": "explicit"
55
},
66
"editor.formatOnSave": true,
77
"[json]": {

0 commit comments

Comments
 (0)