-
Notifications
You must be signed in to change notification settings - Fork 373
33 lines (28 loc) · 912 Bytes
/
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
name: Continuous Integration
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install and build
run: |
npm ci
npm run build
npm run build:tests
- name: Lint and run unit tests
run: npm test
- name: Run api-extractor
run: npm run api-extractor
- name: Run emulator-based integration tests
run: |
npm install -g firebase-tools@11.30.0
firebase emulators:exec --project fake-project-id --only auth,database,firestore \
'npx mocha \"test/integration/{auth,database,firestore}.spec.ts\" --slow 5000 --timeout 20000 --require ts-node/register'