Skip to content

Commit 36552da

Browse files
authored
chore: update workflows (#2741)
1 parent dea97e4 commit 36552da

File tree

5 files changed

+20
-35
lines changed

5 files changed

+20
-35
lines changed

.github/workflows/documentation.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@ jobs:
1717

1818
steps:
1919

20-
# https://github.com/marketplace/actions/checkout
21-
- name: Check out code
22-
uses: actions/checkout@v4
20+
- uses: actions/checkout@v6
2321
with:
2422
fetch-depth: 0
2523

26-
# https://github.com/marketplace/actions/setup-go-environment
27-
- name: Set up Go ${{ env.GO_VERSION }}
28-
uses: actions/setup-go@v5
24+
- uses: actions/setup-go@v6
2925
with:
3026
go-version: ${{ env.GO_VERSION }}
3127

.github/workflows/go-cross.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@ jobs:
2020
os: [ubuntu-latest, macos-latest, windows-latest]
2121

2222
steps:
23-
# https://github.com/marketplace/actions/checkout
24-
- name: Checkout code
25-
uses: actions/checkout@v4
26-
27-
# https://github.com/marketplace/actions/setup-go-environment
28-
- name: Set up Go ${{ matrix.go-version }}
29-
uses: actions/setup-go@v5
23+
- uses: actions/checkout@v6
24+
- uses: actions/setup-go@v6
3025
with:
3126
go-version: ${{ matrix.go-version }}
3227

.github/workflows/pr.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,48 +13,41 @@ jobs:
1313
runs-on: ubuntu-latest
1414
env:
1515
GO_VERSION: stable
16-
GOLANGCI_LINT_VERSION: v2.6.0
16+
GOLANGCI_LINT_VERSION: v2.7.1
1717
HUGO_VERSION: 0.148.2
1818
CGO_ENABLED: 0
1919
LEGO_E2E_TESTS: CI
2020
MEMCACHED_HOSTS: localhost:11211
2121

2222
steps:
2323

24-
# https://github.com/marketplace/actions/checkout
25-
- name: Check out code
26-
uses: actions/checkout@v4
24+
- uses: actions/checkout@v6
2725
with:
2826
fetch-depth: 0
2927

30-
# https://github.com/marketplace/actions/setup-go-environment
31-
- name: Set up Go ${{ env.GO_VERSION }}
32-
uses: actions/setup-go@v5
28+
- uses: actions/setup-go@v6
3329
with:
3430
go-version: ${{ env.GO_VERSION }}
3531

3632
- name: Check and get dependencies
3733
run: |
38-
go mod tidy
39-
git diff --exit-code go.mod
40-
git diff --exit-code go.sum
34+
go mod tidy --diff
4135
4236
- name: Generate and Check generated elements
4337
run: |
4438
make generate-dns
4539
git diff --exit-code
4640
47-
# https://golangci-lint.run/usage/install#other-ci
48-
- name: Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }}
49-
run: |
50-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
51-
golangci-lint --version
41+
- uses: golangci/golangci-lint-action@v9
42+
with:
43+
version: ${{ env.GOLANGCI_LINT_VERSION }}
44+
install-only: true
5245

5346
- name: Install Pebble
54-
run: go install github.com/letsencrypt/pebble/v2/cmd/pebble@v2.7.0
47+
run: go install github.com/letsencrypt/pebble/v2/cmd/pebble@v2.8.0
5548

5649
- name: Install challtestsrv
57-
run: go install github.com/letsencrypt/pebble/v2/cmd/pebble-challtestsrv@v2.7.0
50+
run: go install github.com/letsencrypt/pebble/v2/cmd/pebble-challtestsrv@v2.8.0
5851

5952
- name: Set up a Memcached server
6053
uses: niden/actions-memcached@v7

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,11 @@ jobs:
4242
docker-images: true
4343
swap-storage: false
4444

45-
- name: Check out code
46-
uses: actions/checkout@v4
45+
- uses: actions/checkout@v6
4746
with:
4847
fetch-depth: 0
4948

50-
- name: Set up Go ${{ env.GO_VERSION }}
51-
uses: actions/setup-go@v5
49+
- uses: actions/setup-go@v6
5250
with:
5351
go-version: ${{ env.GO_VERSION }}
5452

@@ -71,7 +69,7 @@ jobs:
7169
- name: Run GoReleaser
7270
uses: goreleaser/goreleaser-action@v6
7371
with:
74-
version: v2.12.3
72+
version: v2.13.0
7573
args: release -p 1 --clean --timeout=90m
7674
env:
7775
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }}

.golangci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ linters:
180180
text: Error return value of `fmt.Fprintln` is not checked
181181
linters:
182182
- errcheck
183+
- text: "var-naming: avoid meaningless package names"
184+
linters:
185+
- revive
183186
- path: certcrypto/crypto.go
184187
text: (tlsFeatureExtensionOID|ocspMustStapleFeature) is a global variable
185188
linters:

0 commit comments

Comments
 (0)