-
-
Notifications
You must be signed in to change notification settings - Fork 62
43 lines (37 loc) · 1.06 KB
/
ci.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
name: CI
on:
push:
branches:
- main
permissions:
actions: read
contents: read
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Restore cached npm dependencies
uses: actions/cache/restore@v4
with:
path: |
node_modules
key: npm-dependencies-${{ hashFiles('pnpm-lock.yaml') }}
- run: pnpm install --frozen-lockfile
- name: Cache npm dependencies
uses: actions/cache/save@v3
with:
path: |
node_modules
key: npm-dependencies-${{ hashFiles('pnpm-lock.yaml') }}
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4
- name: Install playwright browsers
run: pnpm playwright install --with-deps chromium
- run: pnpm nx affected -t lint build --parallel=3 # add test
- run: pnpm nx affected -t e2e-ci --parallel=1