-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (42 loc) · 897 Bytes
/
test.yml
File metadata and controls
42 lines (42 loc) · 897 Bytes
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
name: Test DevOps Example Application
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run_tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: test
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
-
name: Build images
run: make build_images
-
name: Run tests
run: make
-
name: Failure debugging
if: ${{ failure() }}
run: |
set -x
docker ps -a
docker logs deployment_frontend_1
docker logs deployment_proxy_1
docker logs deployment_backend_1
-
name: Cleanup
if: ${{ failure() || cancelled() }}
run: make remove_services