-
Notifications
You must be signed in to change notification settings - Fork 39
44 lines (37 loc) · 1.19 KB
/
tests.integration.yaml
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
name: CORE-API Integration Tests
on:
pull_request:
paths:
- migrations/**
- services/core-api/**
- services/postgres/**
- docker-compose
- docker-compose.ci.yaml
jobs:
tests-verify-migrations:
name: tests-verify-migrations
runs-on: ubuntu-20.04
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Check migrations successful
env:
DOCKER_BUILDKIT: 1
run: |
docker-compose -f docker-compose.ci.yaml up --force-recreate --exit-code-from flyway-verify flyway-verify
tests-integration-backend:
name: tests-integration-backend
runs-on: ubuntu-20.04
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Run Migrations First
env:
DOCKER_BUILDKIT: 1
run: docker-compose -f docker-compose.ci.yaml up --force-recreate --exit-code-from flyway flyway
- name: Create containers for integration tests
env:
DOCKER_BUILDKIT: 1
run: docker-compose -f docker-compose.ci.yaml up -d backend
- name: Run integration tests
run: docker-compose -f docker-compose.ci.yaml exec -T backend pytest