From 1d69312b019df16868e8a76083aea8fc207c28cd Mon Sep 17 00:00:00 2001 From: Joona Hoikkala Date: Sun, 15 Dec 2024 12:40:34 +0200 Subject: [PATCH] Test updated golangci config --- .github/workflows/golangci-lint.yml | 29 ++++++++++++++--------------- go.mod | 1 + 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 2bb645a..a3a02a1 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -4,26 +4,25 @@ on: tags: - v* branches: + - main - master pull_request: - schedule: - # Run every 12 hours, at the 15 minute mark. E.g. - # 2020-11-29 00:15:00 UTC, 2020-11-29 12:15:00 UTC, 2020-11-30 00:15:00 UTC - - cron: '15 */12 * * *' + +permissions: + contents: read + # Optional: allow read access to pull request. Use with `only-new-issues` option. + # pull-requests: read + jobs: golangci: - name: Lint Sourcecode + name: lint runs-on: ubuntu-latest steps: - - name: Setup Go - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: 1.18.4 - - - name: Check out code - uses: actions/checkout@v3 - - - name: Run golangci-lint - uses: golangci/golangci-lint-action@v3 + go-version: stable + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 with: - version: v1.48 + version: v1.60 diff --git a/go.mod b/go.mod index 08bf4c0..0781a74 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,7 @@ module github.com/joohoi/acme-dns go 1.22 +toolchain go1.22.0 require ( github.com/BurntSushi/toml v1.4.0