-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1.04 KB
/
docker-build.yml
File metadata and controls
39 lines (31 loc) · 1.04 KB
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
name: Build with Docker Compose
on:
push:
branches:
- main
- git_CI/CD
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
DJANGO_SECRET: ${{ secrets.DJANGO_SECRET }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker Compose services
run: docker compose -f docker/docker-compose.yml build --progress=plain
- name: Run Django tests
env:
DJANGO_SECRET: ${{ secrets.DJANGO_SECRET }}
GITHUB_CLIENT: ${{ secrets.GH_CLIENT }}
GITHUB_SECRET: ${{ secrets.GH_SECRET }}
run: |
docker compose -f docker/docker-compose.yml run --rm \
--workdir /backend/src backend python manage.py test
- name: Run Web tests
run: docker compose -f docker/docker-compose.yml run --rm web npm run test
- name: Run Console tests
run: docker compose -f docker/docker-compose.yml run --rm console python test.py