-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (28 loc) ยท 1.1 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
name: CI - Lint, Build, and Test with pnpm
on:
pull_request:
branches:
- '*' # ๋ชจ๋ ๋ธ๋์น์์ PR ์์ฑ ์ ๋์
jobs:
lint-build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16' # ํ๋ก์ ํธ์ ๋ง๋ Node.js ๋ฒ์ ์ง์
- name: Install pnpm
run: npm install -g pnpm # pnpm ์ค์น
- name: Install Dependencies
run: pnpm install # pnpm์ ์ฌ์ฉํ์ฌ ์์กด์ฑ ์ค์น
- name: Run Linter
run: pnpm lint # pnpm์ ์ฌ์ฉํ์ฌ ๋ฆฐํธ ์คํ
continue-on-error: false # ๋ฆฐํธ ์คํจ ์ ์ํฌํ๋ก์ฐ ์คํจ๋ก ์ฒ๋ฆฌ
- name: Run Build
run: pnpm build # pnpm์ ์ฌ์ฉํ์ฌ ๋น๋ ์คํ
continue-on-error: false # ๋น๋ ์คํจ ์ ์ํฌํ๋ก์ฐ ์คํจ๋ก ์ฒ๋ฆฌ
- name: Run Tests
run: pnpm test # pnpm์ ์ฌ์ฉํ์ฌ ํ
์คํธ ์คํ
continue-on-error: false # ํ
์คํธ ์คํจ ์ ์ํฌํ๋ก์ฐ ์คํจ๋ก ์ฒ๋ฆฌ