Skip to content

Commit 060db03

Browse files
authored
ci: run tests in the firebase emulator
1 parent fb22381 commit 060db03

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/test.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ jobs:
1313
strategy:
1414
matrix:
1515
node-version:
16-
- 14.x
16+
- 20.x
17+
- 22.x
1718
steps:
18-
- uses: actions/checkout@v1
19-
- uses: actions/setup-node@v1
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
2021
with:
2122
node-version: ${{ matrix.node-version }}
2223

@@ -30,6 +31,10 @@ jobs:
3031
- run: npm run bootstrap
3132
- run: npm run lint
3233
- run: npm run test
34+
- name: Run tests against emulator
35+
run: |
36+
npm install -g firebase-tools
37+
firebase emulators:exec --only database --project fake-project-id 'npm run test'
3338
- run: npm run coverage
3439

3540
- name: Coveralls

0 commit comments

Comments
 (0)