-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (65 loc) · 2.01 KB
/
Check_local_run.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Check local run
on:
pull_request:
branches:
- production
- main
push:
branches:
- production
- main
jobs:
test-container:
name: Run tests in container
runs-on: ubuntu-latest
steps:
- name: Setup git
uses: actions/checkout@v3
- name: Check container tests
run: ENV_FILE_OVERRIDE=web.env.example docker compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.test.yml run --rm tests
test-local:
name: Run test locally
runs-on: ubuntu-latest
strategy:
matrix:
python:
- '3.11'
- '3.10'
- '3.9'
- '3.8'
steps:
- name: Setup git
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r web/requirements.app.txt
pip install -r web/requirements.dev.txt
- name: Check local environment tests
run: pytest
healthy-containers:
name: Check containers run
runs-on: ubuntu-latest
steps:
- name: Setup git
uses: actions/checkout@v3
- name: Run all containers
run: ENV_FILE_OVERRIDE=web.env.example docker compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.test.yml up -d
- name: Check postgres health
run: /bin/bash healthcheck.sh db 60
- name: Check keycloak health
run: /bin/bash healthcheck.sh kc 60
- name: Check nextcloud health
run: /bin/bash healthcheck.sh nc 60
- name: Check broker health
run: /bin/bash healthcheck.sh broker 60
- name: Check worker health
run: /bin/bash healthcheck.sh worker 60
- name: Check B3Desk health
run: /bin/bash healthcheck.sh web 60
- name: Check tokenmock health and token content
run: /bin/bash healthcheck.sh id 60