-
Notifications
You must be signed in to change notification settings - Fork 22
60 lines (53 loc) · 1.37 KB
/
pr-checks.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Run PR checks
run-name: Checks for PR#${{ github.event.pull_request.number }}
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
permissions:
contents: read
env:
NODE_INSTALL_VERSION: 20.x
PNPM_INSTALL_VERSION: 8
jobs:
lint:
name: Linter check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_INSTALL_VERSION }}
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_INSTALL_VERSION }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run prettier
run: pnpm lint
build:
name: Build check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_INSTALL_VERSION }}
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_INSTALL_VERSION }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run test build
run: pnpm build
dependency-review:
name: Check for security/license issues
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/dependency-review-action@v3