-
Notifications
You must be signed in to change notification settings - Fork 15
54 lines (43 loc) · 1.12 KB
/
continuous_integration.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
name: Continuous Integration
on:
pull_request:
branches:
- main
- 'feature/**'
- 'staging/4*'
jobs:
test-prod:
name: "Test: Productive start"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build container
run: make build
- name: Create secret
run: mkdir secrets && echo -n "openslides" > secrets/postgres_password
- name: Start container
run: |
source .env
docker compose up -d --wait
- name: Test that reader is up and running
run: curl -I http://localhost:9010/
- name: Test that writer is up and running
run: curl -I http://localhost:9011/
tests:
name: "Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Execute tests
run: make run-ci
test-full-system:
name: "Full System Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start containers
run: make run-dev-standalone
- name: Execute tests
run: make run-full-system-tests-check
- name: Stop tests
run: make stop-dev