Skip to content

Commit 84de50d

Browse files
committed
fix: set prerelease auto, get go version from mod file
1 parent 713e4d3 commit 84de50d

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

.github/workflows/codeql.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ jobs:
4242
- name: Checkout repository
4343
uses: actions/checkout@v4
4444

45+
- name: Set up Go
46+
uses: actions/setup-go@v4
47+
with:
48+
go-version-file: go.mod
49+
4550
# Initializes the CodeQL tools for scanning.
4651
- name: Initialize CodeQL
4752
uses: github/codeql-action/init@v2

.github/workflows/pull-request.yaml

+3-14
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,11 @@ jobs:
77
linux:
88
runs-on: ubuntu-latest
99

10-
strategy:
11-
max-parallel: 4
12-
matrix:
13-
go-version: [ 1.19.x ]
14-
1510
steps:
1611
- 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
2413
with:
25-
repo-token: ${{ secrets.GITHUB_TOKEN }}
14+
go-version-file: go.mod
2615

2716
- name: Set up Go modules cache
2817
uses: actions/cache@v3
@@ -47,7 +36,7 @@ jobs:
4736
args: --issues-exit-code=0
4837

4938
- name: Run tests
50-
run: task cover
39+
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
5140

5241
- name: Build binary
5342
uses: goreleaser/goreleaser-action@v3

.github/workflows/release-beta.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up Go
2828
uses: actions/setup-go@v4
2929
with:
30-
go-version: 1.19
30+
go-version-file: go.mod
3131

3232
- name: Get goreleaser app token
3333
id: get-app-token

.github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
uses: actions/checkout@v3
1212

1313
- name: Set up Go
14-
uses: actions/setup-go@v3
14+
uses: actions/setup-go@v4
1515
with:
16-
go-version: 1.19
16+
go-version-file: go.mod
1717

1818
- name: Create release
1919
uses: goreleaser/goreleaser-action@v3

.goreleaser.yml

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ checksum:
2424
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
2525
algorithm: sha256
2626

27+
release:
28+
mode: replace
29+
prerelease: auto
30+
2731
changelog:
2832
sort: asc
2933
filters:

0 commit comments

Comments
 (0)