-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (77 loc) · 2.27 KB
/
push.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Quality Control
on: [
pull_request,
workflow_dispatch
]
jobs:
build:
name: Quality Control
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# make tags available for the build
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: false
- name: Install Go quality tools
run: |
go install golang.org/x/tools/cmd/[email protected]
go install github.com/axw/gocov/[email protected]
go install github.com/jstemmer/go-junit-report/[email protected]
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.56.2
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Code quality checks
run: |
# Note: it is by design that we don't use the builder
task format
task lint
- name: Unit tests
run: |
# Note: it is by design that we don't use the builder
task test:unit
- name: Integration tests
run: |
task test:integration
- name: Azurite logs
run: |
task azurite:logs
- name: Stop azurite
if: always()
run: |
task azurite:stop
systemtest:
name: System Test
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
with:
# make tags available for the build
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22' # Specify the Go version you need
- name: Install Task
uses: arduino/setup-task@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build project
run: |
task build
export VERACITY_INSTALL=$(readlink -f ./veracity) >> $GITHUB_ENV
- name: System tests
run: |
echo "Veracity Installation Path: $VERACITY_INSTALL"
task test:system
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
with:
report_paths: ./tests/systemtest/res.xml