Skip to content

Commit 9703442

Browse files
committed
Update GH Workflow deps
1 parent 10978c5 commit 9703442

File tree

3 files changed

+27
-14
lines changed

3 files changed

+27
-14
lines changed

.github/workflows/build.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,30 @@ jobs:
4444
- name: Install dependencies
4545
run: |
4646
go version
47-
go install golang.org/x/lint/golint@latest
4847
go get -t -v ./...
4948
5049
# Build project
5150
- name: Build project
5251
run: go build ./...
5352

54-
# Run go vet & golint
53+
# Run go vet
5554
- name: Run go vet
5655
run: go vet ./...
57-
- name: Run golint
58-
run: golint ./...
5956

57+
# Run staticcheck
58+
- name: Run staticcheck
59+
uses: dominikh/[email protected]
60+
with:
61+
version: latest
62+
install-go: false
63+
6064
# Run tests
6165
- name: Run tests
6266
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
6367

64-
# # Upload coverage report to Codecov
65-
# - name: Report to Codecov
66-
# uses: codecov/[email protected]
68+
# - name: Upload coverage reports to Codecov
69+
# uses: codecov/codecov-action@v5
6770
# with:
68-
# file: ./coverage.txt
69-
# # fail_ci_if_error: true # optional (default = false)
70-
71+
# token: ${{ secrets.CODECOV_TOKEN }}
72+
# files: ./coverprofile.out
73+
# # fail_ci_if_error: true # optional (default = false)

.github/workflows/dummy-release.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,20 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout repository
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 0
1414

15+
- name: Install Go
16+
uses: actions/setup-go@v5
17+
with:
18+
go-version-file: 'go.mod'
19+
1520
- name: Install cross-compilers
1621
run: sudo apt-get install gcc-mingw-w64 gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi
1722

1823
- name: Run GoReleaser
19-
uses: goreleaser/goreleaser-action@v2
24+
uses: goreleaser/goreleaser-action@v6
2025
with:
2126
version: latest
2227
args: release --rm-dist --snapshot --skip-publish

.github/workflows/release.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,20 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616

17+
- name: Install Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version-file: 'stable'
21+
1722
- name: Install cross-compilers
1823
run: sudo apt-get install gcc-mingw-w64 gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi
1924

2025
- name: Run GoReleaser
21-
uses: goreleaser/goreleaser-action@v2
26+
uses: goreleaser/goreleaser-action@v6
2227
with:
2328
version: latest
2429
args: release --rm-dist

0 commit comments

Comments
 (0)