Skip to content

Commit 6330564

Browse files
committed
chore: Update github actions
1 parent 6fdfb60 commit 6330564

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.github/workflows/lint-and-test.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,25 @@ jobs:
77
lint:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/setup-go@v3
11+
with:
12+
go-version: ^1.20
13+
- uses: actions/checkout@v3
1114
- name: golangci-lint
12-
uses: golangci/golangci-lint-action@v2
15+
uses: golangci/golangci-lint-action@v3
1316
with:
14-
version: v1.46
17+
version: v1.51.2
1518
test:
1619
runs-on: ubuntu-latest
1720
steps:
1821
- uses: actions/checkout@v3
1922
- name: Set up Go
2023
uses: actions/setup-go@v3
2124
with:
22-
go-version: ^1.18
25+
go-version: ^1.20
2326
id: go
2427
- name: Download dependencies
2528
run: go mod download
2629
- name: Test
2730
run: go test -v -coverprofile=coverage.txt -covermode=count ./...
28-
- uses: codecov/codecov-action@v2
31+
- uses: codecov/codecov-action@v3

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v3
1717
with:
18-
go-version: ^1.18
18+
go-version: ^1.20
1919
- name: Release binaries
20-
uses: goreleaser/goreleaser-action@v3
20+
uses: goreleaser/goreleaser-action@v4
2121
with:
2222
version: latest
2323
args: release --rm-dist
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/checkout@v3
3333
- name: Docker meta
3434
id: meta
35-
uses: docker/metadata-action@v3
35+
uses: docker/metadata-action@v4
3636
with:
3737
images: mdomke/git-semver,ghcr.io/mdomke/git-semver
3838
tags: |
@@ -52,7 +52,7 @@ jobs:
5252
password: ${{ secrets.GITHUB_TOKEN }}
5353
- name: Build and push image
5454
id: docker_build
55-
uses: docker/build-push-action@v3
55+
uses: docker/build-push-action@v4
5656
with:
5757
context: .
5858
push: true

0 commit comments

Comments
 (0)