Skip to content

Commit d58b41c

Browse files
feat: add CI workflow
1 parent 0e9a43f commit d58b41c

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
8+
jobs:
9+
frontend-build:
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: async-code-web
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: '20'
19+
cache: 'npm'
20+
cache-dependency-path: async-code-web/package-lock.json
21+
- run: npm ci
22+
- run: npm run build
23+
24+
backend-static-check:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: actions/setup-python@v4
29+
with:
30+
python-version: '3.11'
31+
- name: Static analysis
32+
run: python -m compileall -q server

0 commit comments

Comments
 (0)