-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (45 loc) · 1.27 KB
/
ci-backend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Backend test pipeline
on:
pull_request:
paths:
- 'backend/backend/**'
- 'backend/user/**'
- 'backend/manage.py'
- 'backend/requirements.txt'
- 'docker-compose.yml'
- '.github/workflows/ci-backend.yml'
push:
branches:
- main
- dev
paths:
- 'backend/backend/**'
- 'backend/user/**'
- 'backend/manage.py'
- 'backend/requirements.txt'
- 'docker-compose.yml'
- '.github/workflows/ci-backend.yml'
workflow_dispatch:
jobs:
backend-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "[CI] Backend test"
run: |
echo
npm install deers > /dev/null 2>&1
node -e "const deers = require('deers'); console.log(deers()[new Date().getMinutes()]);" || true
make
docker --version
docker-compose --version
make env-files
docker compose up -d --build --quiet-pull --remove-orphans
docker compose ps
docker network ls
docker compose logs db
docker compose logs backend
make git-stats
docker compose exec -T backend python manage.py test