-
Notifications
You must be signed in to change notification settings - Fork 15
43 lines (40 loc) · 1.1 KB
/
ci-workflow.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
name: BCDA CI Workflow
on:
push:
branches:
- master
pull_request:
env:
COMPOSE_INTERACTIVE_NO_CLI: 1
VAULT_PW: ${{ secrets.VAULT_PW }}
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Decrypt secrets
run: |
echo $VAULT_PW > .vault_password
bash ops/secrets --decrypt
mv -fv shared_files/encrypted/* shared_files/decrypted/
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build the stack
run: |
make docker-bootstrap
- name: Run all tests
run: |
make test
- name: Generate codecov report
uses: codecov/codecov-action@v2
with:
files: ./test_results/latest/testcoverage.out # optional
flags: unittests # optional
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)