File tree Expand file tree Collapse file tree 3 files changed +36
-10
lines changed Expand file tree Collapse file tree 3 files changed +36
-10
lines changed Original file line number Diff line number Diff line change
1
+ name : Tests
2
+
3
+ on :
4
+ push :
5
+ paths-ignore :
6
+ - ' LICENSE'
7
+ - ' **.md'
8
+ - ' examples/*'
9
+ - ' templates/*'
10
+ pull_request :
11
+ paths-ignore :
12
+ - ' LICENSE'
13
+ - ' **.md'
14
+ - ' examples/*'
15
+ - ' templates/*'
16
+
17
+ jobs :
18
+ unit :
19
+ name : Unit Tests
20
+ runs-on : ubuntu-latest
21
+
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+
25
+ - name : Install dependencies
26
+ run : make get-deps
27
+
28
+ - name : Build docker-gen
29
+ run : make docker-gen
30
+
31
+ - name : Check code formatting
32
+ run : make check-gofmt
33
+
34
+ - name : Run tests
35
+ run : make test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ release: dist
41
41
tar -cvzf docker-gen-darwin-amd64-$(TAG ) .tar.gz -C dist/darwin/amd64 docker-gen
42
42
43
43
get-deps :
44
- go get ./...
44
+ go mod download
45
45
46
46
check-gofmt :
47
47
if [ -n " $( shell gofmt -l .) " ]; then \
You can’t perform that action at this time.
0 commit comments