chore: update workflows (#2741)

This commit is contained in:
Ludovic Fernandez
2025-12-05 16:45:51 +01:00
committed by GitHub
parent dea97e4dfa
commit 36552da309
5 changed files with 20 additions and 35 deletions

View File

@@ -17,15 +17,11 @@ jobs:
steps: steps:
# https://github.com/marketplace/actions/checkout - uses: actions/checkout@v6
- name: Check out code
uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
# https://github.com/marketplace/actions/setup-go-environment - uses: actions/setup-go@v6
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v5
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}

View File

@@ -20,13 +20,8 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-latest, macos-latest, windows-latest]
steps: steps:
# https://github.com/marketplace/actions/checkout - uses: actions/checkout@v6
- name: Checkout code - uses: actions/setup-go@v6
uses: actions/checkout@v4
# https://github.com/marketplace/actions/setup-go-environment
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}

View File

@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
GO_VERSION: stable GO_VERSION: stable
GOLANGCI_LINT_VERSION: v2.6.0 GOLANGCI_LINT_VERSION: v2.7.1
HUGO_VERSION: 0.148.2 HUGO_VERSION: 0.148.2
CGO_ENABLED: 0 CGO_ENABLED: 0
LEGO_E2E_TESTS: CI LEGO_E2E_TESTS: CI
@@ -21,40 +21,33 @@ jobs:
steps: steps:
# https://github.com/marketplace/actions/checkout - uses: actions/checkout@v6
- name: Check out code
uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
# https://github.com/marketplace/actions/setup-go-environment - uses: actions/setup-go@v6
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v5
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
- name: Check and get dependencies - name: Check and get dependencies
run: | run: |
go mod tidy go mod tidy --diff
git diff --exit-code go.mod
git diff --exit-code go.sum
- name: Generate and Check generated elements - name: Generate and Check generated elements
run: | run: |
make generate-dns make generate-dns
git diff --exit-code git diff --exit-code
# https://golangci-lint.run/usage/install#other-ci - uses: golangci/golangci-lint-action@v9
- name: Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }} with:
run: | version: ${{ env.GOLANGCI_LINT_VERSION }}
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION} install-only: true
golangci-lint --version
- name: Install Pebble - name: Install Pebble
run: go install github.com/letsencrypt/pebble/v2/cmd/pebble@v2.7.0 run: go install github.com/letsencrypt/pebble/v2/cmd/pebble@v2.8.0
- name: Install challtestsrv - name: Install challtestsrv
run: go install github.com/letsencrypt/pebble/v2/cmd/pebble-challtestsrv@v2.7.0 run: go install github.com/letsencrypt/pebble/v2/cmd/pebble-challtestsrv@v2.8.0
- name: Set up a Memcached server - name: Set up a Memcached server
uses: niden/actions-memcached@v7 uses: niden/actions-memcached@v7

View File

@@ -42,13 +42,11 @@ jobs:
docker-images: true docker-images: true
swap-storage: false swap-storage: false
- name: Check out code - uses: actions/checkout@v6
uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up Go ${{ env.GO_VERSION }} - uses: actions/setup-go@v6
uses: actions/setup-go@v5
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
@@ -71,7 +69,7 @@ jobs:
- name: Run GoReleaser - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6 uses: goreleaser/goreleaser-action@v6
with: with:
version: v2.12.3 version: v2.13.0
args: release -p 1 --clean --timeout=90m args: release -p 1 --clean --timeout=90m
env: env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }} GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }}

View File

@@ -180,6 +180,9 @@ linters:
text: Error return value of `fmt.Fprintln` is not checked text: Error return value of `fmt.Fprintln` is not checked
linters: linters:
- errcheck - errcheck
- text: "var-naming: avoid meaningless package names"
linters:
- revive
- path: certcrypto/crypto.go - path: certcrypto/crypto.go
text: (tlsFeatureExtensionOID|ocspMustStapleFeature) is a global variable text: (tlsFeatureExtensionOID|ocspMustStapleFeature) is a global variable
linters: linters: