-
Notifications
You must be signed in to change notification settings - Fork 12
52 lines (46 loc) · 1.16 KB
/
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
name: Checks
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
setup:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- uses: ./.github/actions/build
- uses: ./.github/actions/upload-pkg
- run: pnpm lint
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
needs: [setup]
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node-version: [16, 18, 20]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node-version }}
- uses: ./.github/actions/download-pkg
- run: pnpm test
other-check:
runs-on: ubuntu-latest
timeout-minutes: 15
needs: [setup]
env:
WORKING_DIR_SITE: site
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- uses: ./.github/actions/download-pkg
# site checks
- run: pnpm check
working-directory: ${{ env.WORKING_DIR_SITE }}
- run: pnpm build
working-directory: ${{ env.WORKING_DIR_SITE }}