Skip to content

Commit 257fb49

Browse files
authored
Fix goreleaser and bump versions of go and actions. (#39)
1 parent 858f2fe commit 257fb49

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
- name: Install Go
88
uses: actions/setup-go@v4
99
with:
10-
go-version: 1.21.x
10+
go-version: 1.22.x
1111
- name: Checkout code
1212
uses: actions/checkout@v3
1313
- name: Run linters
@@ -18,7 +18,7 @@ jobs:
1818
go-test:
1919
strategy:
2020
matrix:
21-
go-version: [1.21.x]
21+
go-version: [1.22.x]
2222
platform: [ubuntu-latest]
2323
runs-on: ${{ matrix.platform }}
2424
steps:

.github/workflows/main.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Install Go
11-
uses: actions/setup-go@v4
11+
uses: actions/setup-go@v5
1212
with:
13-
go-version: 1.21.x
13+
go-version: 1.22.x
1414
- name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
- name: Run linters
1717
uses: golangci/golangci-lint-action@v3
1818
with:
@@ -21,17 +21,17 @@ jobs:
2121
go-test:
2222
strategy:
2323
matrix:
24-
go-version: [ 1.21.x ]
24+
go-version: [ 1.22.x ]
2525
platform: [ ubuntu-latest ]
2626
runs-on: ${{ matrix.platform }}
2727
steps:
2828
- name: Install Go
2929
if: success()
30-
uses: actions/setup-go@v4
30+
uses: actions/setup-go@v5
3131
with:
3232
go-version: ${{ matrix.go-version }}
3333
- name: Checkout code
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535
- name: go tests
3636
run: go test -v -covermode=count -json ./... > test.json
3737
- name: annotate go tests

.github/workflows/output_capabilities.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
token: ${{ secrets.RELENG_GITHUB_TOKEN }}
1717

1818
- name: Setup Go
19-
uses: actions/setup-go@v4
19+
uses: actions/setup-go@v5
2020
with:
2121
go-version-file: 'go.mod'
2222

.github/workflows/release.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
runs-on: macos-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616
- name: Set up Go
17-
uses: actions/setup-go@v4
17+
uses: actions/setup-go@v5
1818
with:
19-
go-version: 1.21.x
19+
go-version: 1.22.x
2020
- name: Set up Gon
2121
run: brew tap conductorone/gon && brew install conductorone/gon/gon
2222
- name: Import Keychain Certs
@@ -25,10 +25,10 @@ jobs:
2525
p12-file-base64: ${{ secrets.APPLE_SIGNING_KEY_P12 }}
2626
p12-password: ${{ secrets.APPLE_SIGNING_KEY_P12_PASSWORD }}
2727
- name: Run GoReleaser
28-
uses: goreleaser/goreleaser-action@v2
28+
uses: goreleaser/goreleaser-action@v6
2929
with:
3030
version: "~> v2"
31-
args: release --rm-dist
31+
args: release --clean
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.RELENG_GITHUB_TOKEN }}
3434
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
@@ -37,25 +37,25 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Checkout
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v4
4141
with:
4242
fetch-depth: 0
4343
- name: Set up Go
44-
uses: actions/setup-go@v4
44+
uses: actions/setup-go@v5
4545
with:
46-
go-version: 1.21.x
46+
go-version: 1.22.x
4747
- name: Docker Login
48-
uses: docker/login-action@v1
48+
uses: docker/login-action@v3
4949
with:
5050
registry: ghcr.io
5151
username: ${{ github.repository_owner }}
5252
password: ${{ secrets.RELENG_GITHUB_TOKEN }}
5353
- name: Set up Docker Buildx
54-
uses: docker/setup-buildx-action@v1
54+
uses: docker/setup-buildx-action@v3
5555
- name: Run GoReleaser
56-
uses: goreleaser/goreleaser-action@v2
56+
uses: goreleaser/goreleaser-action@v6
5757
with:
5858
version: "~> v2"
59-
args: release --rm-dist -f .goreleaser.docker.yaml
59+
args: release --clean -f .goreleaser.docker.yaml
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.RELENG_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)