-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 861 Bytes
/
test.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
name: Test
on: pull_request
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
# We need to fetch all branches and commits so that Nx affected has a base to compare against.
fetch-depth: 0
- uses: nrwl/nx-set-shas@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.1
id: pnpm-install
with:
version: 7
run_install: false
- name: Node setup
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint, Test, Build
run: pnpm nx affected --targets=lint,test,build --parallel=3 --ci --code-coverage --prod