-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (28 loc) · 967 Bytes
/
ci.yaml
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
name: Build & Test
on:
pull_request:
jobs:
ci:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: "npm"
registry-url: "https://registry.npmjs.org"
- name: Install
run: npm install
- 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=3 --base=${{ github.event.pull_request.base.sha }} --head=${{
github.event.pull_request.head.sha }}