-
Notifications
You must be signed in to change notification settings - Fork 14
33 lines (33 loc) · 1.02 KB
/
integration-tests.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
# End to end integration tests - GitHub Actions
name: integration tests
on: [push, pull_request]
jobs:
integration-tests:
name: Run integration tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Veraison deployment
run: make docker-deploy
- name: Run integration tests
run: make integ-test | tee tavern-tests.log
- name: Archive tavern container log
if: always()
uses: actions/upload-artifact@v3
with:
name: tavern-logs
path: ./tavern-tests.log
- name: Check for failures
run: grep 'FAILURES' tavern-tests.log | python3 scripts/integ-fail.py
- name: Save docker compose logs
if: always()
run: deployments/docker/veraison get-logs container-logs
- name: Archive container logs
if: always()
uses: actions/upload-artifact@v3
with:
name: container-logs
path: ./container-logs
- name: Tear down services
run: deployments/docker/veraison stop