-
Notifications
You must be signed in to change notification settings - Fork 12
50 lines (41 loc) · 1.02 KB
/
Copy pathtest.yml
File metadata and controls
50 lines (41 loc) · 1.02 KB
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
name: 🧪 Test
on:
pull_request:
branches: [dev]
workflow_dispatch:
workflow_call:
concurrency:
group: ci-test-${{ github.sha }}
cancel-in-progress: false
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
NEXT_PUBLIC_DOCS_SOURCE_REF: ${{ github.head_ref || github.ref_name }}
NODE_OPTIONS: --max-old-space-size=8192
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_TOKEN }}
persist-credentials: false
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Check Build
run: pnpm build
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_TOKEN }}
persist-credentials: false
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Check lint
run: pnpm lint