-
Notifications
You must be signed in to change notification settings - Fork 9
47 lines (39 loc) · 965 Bytes
/
build.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
44
45
46
47
name: Build
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: mod-download
run: |
go mod download
- name: Install Deps
run: |
sudo apt-get update --quiet
sudo apt-get install --quiet --assume-yes --no-install-recommends lvm2 thin-provisioning-tools
- name: gofmt
run: |
make gofmt
- name: build
run: |
make build
- name: Unit Test
run: |
make test
- name: System Test
run: |
make test-all
- name: Upload Coverage report to CodeCov
if: success()
uses: codecov/[email protected]
with:
token: 78b19480-8cfa-4f32-8448-b972a29a8f46
file: ./coverage-all.txt