Skip to content

Commit 638bbc2

Browse files
authored
Merge pull request #2 from georgia-tech-db/add_ci_cd_pipeline
Add a barebones frontend CI pipeline
2 parents 9a1a7ae + c378451 commit 638bbc2

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Frontend CI pipeline
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
cache: npm
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Type check code
27+
run: npm run typecheck || npm run build
28+
29+
- name: Lint code
30+
run: npm run lint
31+
32+
- name: Build project
33+
run: npm run build
34+
35+
# - name: Run tests
36+
# run: npm test

0 commit comments

Comments
 (0)