File tree 5 files changed +15
-17
lines changed
5 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 42
42
- name : Checkout repository
43
43
uses : actions/checkout@v4
44
44
45
+ - name : Set up Go
46
+ uses : actions/setup-go@v4
47
+ with :
48
+ go-version-file : go.mod
49
+
45
50
# Initializes the CodeQL tools for scanning.
46
51
- name : Initialize CodeQL
47
52
uses : github/codeql-action/init@v2
Original file line number Diff line number Diff line change 7
7
linux :
8
8
runs-on : ubuntu-latest
9
9
10
- strategy :
11
- max-parallel : 4
12
- matrix :
13
- go-version : [ 1.19.x ]
14
-
15
10
steps :
16
11
- name : Set up Go
17
- uses : actions/setup-go@v3
18
- with :
19
- go-version : ${{ matrix.go-version }}
20
- id : go
21
-
22
- - name : Install Task
23
- uses : arduino/setup-task@v1
12
+ uses : actions/setup-go@v4
24
13
with :
25
- repo-token : ${{ secrets.GITHUB_TOKEN }}
14
+ go-version-file : go.mod
26
15
27
16
- name : Set up Go modules cache
28
17
uses : actions/cache@v3
47
36
args : --issues-exit-code=0
48
37
49
38
- name : Run tests
50
- run : task cover
39
+ run : go test -race -coverprofile=coverage.out -covermode=atomic ./...
51
40
52
41
- name : Build binary
53
42
uses : goreleaser/goreleaser-action@v3
Original file line number Diff line number Diff line change 27
27
- name : Set up Go
28
28
uses : actions/setup-go@v4
29
29
with :
30
- go-version : 1.19
30
+ go-version-file : go.mod
31
31
32
32
- name : Get goreleaser app token
33
33
id : get-app-token
Original file line number Diff line number Diff line change 11
11
uses : actions/checkout@v3
12
12
13
13
- name : Set up Go
14
- uses : actions/setup-go@v3
14
+ uses : actions/setup-go@v4
15
15
with :
16
- go-version : 1.19
16
+ go-version-file : go.mod
17
17
18
18
- name : Create release
19
19
uses : goreleaser/goreleaser-action@v3
Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ checksum:
24
24
name_template : ' {{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
25
25
algorithm : sha256
26
26
27
+ release :
28
+ mode : replace
29
+ prerelease : auto
30
+
27
31
changelog :
28
32
sort : asc
29
33
filters :
You can’t perform that action at this time.
0 commit comments