-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.21 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
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
- pull_request
env:
ENABLE_BUILD_CONTENTS: "false"
REACTION_SYSTEM_SYNC_KEY: "dummy-key"
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID: "dummy-ga-id"
NEXT_PUBLIC_REACTION_SYSTEM_URL: ${{ vars.NEXT_PUBLIC_REACTION_SYSTEM_URL }}
NEXT_PUBLIC_REACTION_SYSTEM_API_KEY: ${{ vars.NEXT_PUBLIC_REACTION_SYSTEM_API_KEY }}
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js and Pnpm
uses: ./.github/actions/setup-node-and-pnpm
- name: Run Lint
run: pnpm lint
unit-test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js and Pnpm
uses: ./.github/actions/setup-node-and-pnpm
- name: Collect Workflow Telemetry
uses: catchpoint/workflow-telemetry-action@v2
- name: Run unit test
run: pnpm test
build-check:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js and Pnpm
uses: ./.github/actions/setup-node-and-pnpm
- name: Run Build
run: pnpm build