Skip to content

Commit aa40bfb

Browse files
authored
Merge pull request #26 from BeNikk/ci-pipeline
add: basic ci pipeline
2 parents b8ff247 + 424927c commit aa40bfb

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: '18'
21+
22+
- name: Build frontend
23+
run: |
24+
cd frontend
25+
npm install
26+
npm run build
27+
28+
- name: Build backend
29+
run: |
30+
cd backend
31+
npm install
32+
npx tsc
33+

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"start":"npx tsc && node dist/index.js"
8+
"start":"npx tsc && node dist/index.js"
99
},
1010
"keywords": [],
1111
"author": "",

0 commit comments

Comments
 (0)