-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.18 KB
/
js_client_ci.yaml
File metadata and controls
41 lines (38 loc) · 1.18 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
name: JS Client Build & Test
on:
pull_request:
defaults:
run:
working-directory: js-client
jobs:
ci:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v5
with:
node-version-file: js-client/.nvmrc
cache: "npm"
cache-dependency-path: "js-client/package-lock.json"
registry-url: "https://registry.npmjs.org"
- name: Install
run: npm install
- name: Verify Integrity
run: npm audit signatures --omit=dev
- name: Lint
run:
npx nx affected:lint --parallel=3 --base=${{ github.event.pull_request.base.sha }} --head=${{
github.event.pull_request.head.sha }}
- name: Test
run:
npx nx affected:test --parallel=3 --base=${{ github.event.pull_request.base.sha }} --head=${{
github.event.pull_request.head.sha }}
- name: Build
run:
npx nx affected:build --parallel=1 --base=${{ github.event.pull_request.base.sha }} --head=${{
github.event.pull_request.head.sha }}