Skip to content

Commit fdeb414

Browse files
Feat: add github action for ci
1 parent c4da9a7 commit fdeb414

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.github/workflows/frontend.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Frontend 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+
- uses: actions/checkout@v3
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: '22'
19+
- name: Install dependencies
20+
run: |
21+
cd frontend
22+
npm install
23+
- name: Build
24+
run: |
25+
cd frontend
26+
npm run build

.github/workflows/server.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Server testing
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up python
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: '3.9'
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements.txt
24+
# - name: Run tests
25+
# run: |
26+
# python manage.py test
27+
28+
- name: Check for errors
29+
run: |
30+
python manage.py check

0 commit comments

Comments
 (0)