Skip to content

Commit 8a05cea

Browse files
committed
feat: frontend ci setup
1 parent d2f510e commit 8a05cea

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

.github/workflows/ci.yml renamed to .github/workflows/ci-frontend.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ on:
99
branches:
1010
- "main"
1111
paths:
12-
- "**.ts"
13-
- "**.tsx"
14-
- "**.scss"
15-
- "**.js"
16-
- "**.mjs"
17-
- "**.css"
18-
- "**.json"
12+
- "frontend/**.ts"
13+
- "frontend/**.tsx"
14+
- "frontend/**.scss"
15+
- "frontend/**.js"
16+
- "frontend/**.mjs"
17+
- "frontend/**.css"
18+
- "frontend/**.json"
1919
workflow_dispatch:
2020

2121
jobs:
2222
ci:
23-
name: Continuous Integration Tests
23+
name: Continuous Integration Tests, Frontend
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v3
@@ -29,14 +29,17 @@ jobs:
2929
with:
3030
node-version-file: ".nvmrc"
3131

32+
- name: cd frontend
33+
run: cd frontend
34+
3235
- name: install dependencies
33-
run: npm run install:all
36+
run: npm ci
3437

3538
- name: check formatting
3639
run: npm run prettier
3740

38-
# - name: check lint
39-
# run: npm run lint
41+
- name: check lint
42+
run: npm run lint
4043

41-
# - name: check types
42-
# run: npm run types:check
44+
- name: check types
45+
run: npm run types:check

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint",
10+
"prettier": "prettier --check .",
1011
"types:check": "tsc --noEmit"
1112
},
1213
"dependencies": {

0 commit comments

Comments
 (0)