File tree 2 files changed +57
-0
lines changed
2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Go
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ pull_request :
7
+ branches : [master]
8
+
9
+ jobs :
10
+ build :
11
+ name : Build
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Set up Go 1.x
15
+ uses : actions/setup-go@v2
16
+ with :
17
+ go-version : ^1.14
18
+ id : go
19
+
20
+ - name : Check out code into the Go module directory
21
+ uses : actions/checkout@v2
22
+
23
+ - name : Get dependencies
24
+ run : |
25
+ go get -v -t -d ./...
26
+
27
+ - name : Build
28
+ run : go build -v .
29
+
30
+ - name : Test
31
+ run : go test -v .
Original file line number Diff line number Diff line change
1
+ name : relase
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " *"
7
+
8
+ jobs :
9
+ goreleaser :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v2
14
+ with :
15
+ fetch-depth : 0
16
+ - name : Set up Go
17
+ uses : actions/setup-go@v2
18
+ with :
19
+ go-version : 1.14
20
+ - name : Run GoReleaser
21
+ uses : goreleaser/goreleaser-action@v2
22
+ with :
23
+ version : latest
24
+ args : release --rm-dist
25
+ env :
26
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments