Commit b31c945 1 parent aa10a85 commit b31c945 Copy full SHA for b31c945
File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+ workflow_call :
4
11
5
12
jobs :
6
13
11
18
GOPATH : /home/runner/go
12
19
13
20
steps :
14
- - uses : actions/checkout@v1
15
- - uses : actions/setup-go@v1
21
+ - uses : actions/checkout@v4
22
+ - uses : actions/setup-go@v5
16
23
with :
17
24
go-version : stable
18
25
22
29
- run : sudo apt install libusb-1.0-0-dev libfreenect-dev
23
30
- run : go mod download
24
31
32
+ - name : Check go mod
33
+ run : |
34
+ go mod tidy
35
+ git diff --exit-code go.mod
36
+ git diff --exit-code go.sum
37
+
25
38
- run : gofmt -s -d .
26
39
- run : $GOPATH/bin/golint -min_confidence 0.3 $(go list ./...)
27
40
- run : go build -tags kinect ./cmd/shady/
You can’t perform that action at this time.
0 commit comments