-
-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (38 loc) · 1.03 KB
/
pr.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
name: Build and Lint PRs
on: [pull_request]
jobs:
regular_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.12.1
- uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- run: pnpm install
- run: pnpm run lint
- run: pnpm run type-check
- run: pnpm run test
- run: pnpm run build
legacy_peer_deps_build:
runs-on: ubuntu-latest
needs: regular_build
if: ${{ always() && needs.regular_build.result == 'failure' }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.12.1
- uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "pnpm"
- run: pnpm install --no-strict-peer-dependencies
- run: pnpm run lint
- run: pnpm run type-check
- run: pnpm run test
- run: pnpm run build