-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1.15 KB
/
ci_pipeline.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
37
38
39
40
41
42
43
44
name: Continuous Integration Pipeline
on:
pull_request:
workflow_dispatch:
jobs:
build_node_18:
runs-on: ubuntu-latest
environment:
name: develop
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'
- name: Run npm audit
run: npm audit --production --audit-level=moderate
- name: Install dependencies
run: npm ci
- name: Run Jest tests
env:
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }}
run: npm run test:all
build_node_20:
needs: build_node_18
runs-on: ubuntu-latest
environment:
name: develop
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: Run npm audit
run: npm audit --production --audit-level=moderate
- name: Install dependencies
run: npm ci
- name: Run Jest tests
env:
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }}
run: npm run test:all