Skip to content

Commit

Permalink
ci: add golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
grishy committed Jul 26, 2023
1 parent c22d263 commit 2201c5e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: golangci-lint
on:
push:
branches:
- main
pull_request:

permissions:
contents: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53
9 changes: 5 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ builds:
- linux
- darwin
goarch:
- amd64
- arm
- arm64
- "386"
- "amd64"
- "arm"
- "arm64"
goarm:
- "6"
- "7"
Expand All @@ -34,7 +35,7 @@ release:
target_commitish: "{{ .Commit }}"
mode: replace
header: |
## ⚙️ The `{{ .Tag }}` release
## ℹ️ For information on how to install and use please see `README.md`
footer: |
Your PRs & issues are welcome! Thanks 😉
disable: false
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {
}

resendDuration := time.Duration(TTL/2) * time.Second
log.Printf("Publishing every %v ans CNAME TTL=%ds.", resendDuration, TTL)
log.Printf("Publishing every %v and CNAME TTL=%ds.", resendDuration, TTL)

// To start publishing immediately
// https://github.com/golang/go/issues/17601
Expand Down

0 comments on commit 2201c5e

Please sign in to comment.