File tree Expand file tree Collapse file tree 3 files changed +62
-5
lines changed Expand file tree Collapse file tree 3 files changed +62
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : goreleaser
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
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.16
20
+ - name : Run GoReleaser
21
+ uses : goreleaser/goreleaser-action@v2
22
+ with :
23
+ distribution : goreleaser
24
+ version : latest
25
+ args : release --rm-dist
26
+ env :
27
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Go
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ branches : [main]
8
+
9
+ jobs :
10
+ build :
11
+ name : Build & Test
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Set up Go 1.16
15
+ uses : actions/setup-go@v1
16
+ with :
17
+ go-version : 1.16
18
+ id : go
19
+
20
+ - name : Check out code into the Go module directory
21
+ uses : actions/checkout@v2
22
+
23
+ - name : Build
24
+ run : go build -v .
25
+
26
+ - name : golangci-lint
27
+ uses : golangci/golangci-lint-action@v2
28
+ with :
29
+ # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
30
+ version : v1.41
31
+
32
+ - name : Test
33
+ run : |
34
+ go test -race $(go list ./...) -v -coverprofile=.coverage.out
35
+ go tool cover -func=.coverage.out
Original file line number Diff line number Diff line change @@ -34,8 +34,3 @@ release:
34
34
gitlab :
35
35
owner : gg-code
36
36
name : src-fingerprint
37
-
38
- gitlab_urls :
39
- api : https://gitlab.gitguardian.ovh/api/v4/
40
- download : https://gitlab.gitguardian.ovh
41
- skip_tls_verify : false
You can’t perform that action at this time.
0 commit comments