-
Notifications
You must be signed in to change notification settings - Fork 44
49 lines (43 loc) · 1.2 KB
/
go-test.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
45
46
47
48
49
name: go-test
on:
push:
branches:
- "!release"
- "!alpha"
- "!beta"
- "!rc"
- "main"
workflow_call:
pull_request:
merge_group:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: true
# this is just to separate deps and docker pull logs from the main tests step
- name: Warmup tests
run: make run
- name: Run tests
id: tests
run: make test
continue-on-error: true
env:
TEST_PARAM: "-coverprofile=coverage.out -covermode=atomic"
- name: Server logs
if: steps.tests.outcome != 'success'
run: docker-compose -f test/docker/docker-compose.yml logs
- name: Check tests status
if: steps.tests.outcome != 'success'
run: |
echo "^^ Tests failed. Check tests output and logs in the steps above ^^"
exit 1
- name: Dump integration tests coverage
run: sudo make dump_integration_coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.out,./coverage1.out,./coverage2.out