-
-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (34 loc) · 1.07 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on:
push:
pull_request:
branches:
- main
jobs:
emulator_test:
name: Run all tests using Firebase Emulator Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
cache: "npm"
- name: Install Firebase Emulator Suite
run: npm install -g [email protected]
- name: Install npm dependencies
run: npm ci
- name: Build code
run: npm run build
- name: Cache firebase emulators
uses: actions/cache@v2
with:
path: ~/.cache/firebase/emulators
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('~/.cache/firebase/emulators/**') }}
continue-on-error: true
- name: Run all the tests
run: firebase emulators:exec --project demo-nhogs-nestjs-firebase --import=e2e/import 'npm test'
- name: publish code coverage on CC
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}