Skip to content

Commit c81ab56

Browse files
committed
update github actions
1 parent 5b460fd commit c81ab56

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

.github/workflows/backend-ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Backend CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
defaults:
14+
run:
15+
working-directory: ./frontend
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Use Node.js 22
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 22
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Check types
29+
run: npm run type-check
30+
31+
- name: Build Express app
32+
run: npm run build

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Frontend CI
22

33
on:
44
push:
@@ -10,8 +10,13 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212

13+
defaults:
14+
run:
15+
working-directory: ./frontend
16+
1317
steps:
1418
- uses: actions/checkout@v3
19+
1520
- name: Use Node.js 16
1621
uses: actions/setup-node@v3
1722
with:

backend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"scripts": {
33
"build": "npx tsc",
44
"start": "node dist/index.js",
5-
"dev": "nodemon src/index.ts"
5+
"dev": "nodemon src/index.ts",
6+
"type-check": "tsc --noemit"
67
},
78
"dependencies": {
89
"dotenv": "^16.4.5",

0 commit comments

Comments
 (0)