-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (59 loc) Β· 1.58 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI
on:
pull_request:
branches:
- develop
- feature/*
push:
branches:
- develop
- feature/*
jobs:
frontend:
name: Frontend CI
runs-on: ubuntu-latest
steps:
- name: μ½λ 체ν¬μμ
uses: actions/checkout@v3
- name: Node.js μ€μ
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: μμ‘΄μ± μ€μΉ
run: yarn install
working-directory: packages/frontend
- name: Lint κ²μ¬
run: yarn lint
working-directory: packages/frontend
- name: Prettier μ²΄ν¬ λ° μμ
run: yarn prettier --write .
working-directory: packages/frontend
- name: λΉλ
env:
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }}
run: yarn build
working-directory: packages/frontend
backend:
name: Backend CI
runs-on: ubuntu-latest
steps:
- name: μ½λ 체ν¬μμ
uses: actions/checkout@v3
- name: Node.js μ€μ
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: μμ‘΄μ± μ€μΉ
run: yarn install
working-directory: packages/backend/gameserver
- name: Lint κ²μ¬
run: yarn lint
working-directory: packages/backend/gameserver
- name: Prettier μ²΄ν¬ λ° μμ
run: yarn prettier --write .
working-directory: packages/backend/gameserver
- name: λΉλ
run: yarn build
working-directory: packages/backend/gameserver