File tree 3 files changed +39
-56
lines changed
3 files changed +39
-56
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Test and upload to Codecov
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [main]
6
+ push :
7
+ branches : [main]
8
+
9
+ jobs :
10
+ test-build :
11
+ name : Test and upload to Codecov
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+
18
+ - uses : actions/setup-go@v3
19
+ with :
20
+ go-version : 1.18
21
+
22
+ - name : Generate code
23
+ run : make generate
24
+
25
+ - name : Run tests
26
+ run : make unit-test
27
+
28
+ - name : Upload the coverage to Codecov
29
+ uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change 2
2
3
3
set -euxo pipefail
4
4
5
+ # Generate code and compare with the current source.
6
+ # Fail with a diff if some files are outdated.
7
+ go install github.com/golang/mock/
[email protected]
8
+ PATH=" ${PATH} :${GOPATH} /bin" make generate
9
+
10
+ if ! git diff --exit-code; then
11
+ echo " Changes detected"
12
+ exit 1
13
+ fi
14
+
5
15
make lint
You can’t perform that action at this time.
0 commit comments