-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.04 KB
/
ci.yaml
File metadata and controls
53 lines (42 loc) · 1.04 KB
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
45
46
47
48
49
50
51
52
53
name: ITP
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
env:
REPORT_FORMATTER: mocha-reporter-gha
jobs:
build:
name: Build
runs-on: ubuntu-latest
environment: QA
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Audit
run: npm audit
- name: Lint
run: npm run lint
- name: Test (standalone)
env:
ITP_API_URL: ${{ vars.ITP_API_URL }}
ITP_ISSUER_URL: ${{ vars.ITP_ISSUER_URL }}
ITP_SERVICE_CLIENT_ID: ${{ vars.ITP_SERVICE_CLIENT_ID }}
ITP_SERVICE_CLIENT_SECRET: ${{ secrets.ITP_SERVICE_CLIENT_SECRET }}
ITP_MAILINATOR_API_KEY: ${{ secrets.ITP_MAILINATOR_API_KEY }}
run: npm run test