diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bc2535..048b9a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,16 +14,21 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Check out source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version-file: go.mod cache: true - name: Run lint uses: reviewdog/action-golangci-lint@v2 + with: + fail_on_error: true + go_version_file: go.mod + golangci_lint_flags: --timeout=5m + cache: false - name: Run tests run: make ci @@ -42,10 +47,10 @@ jobs: DEBUG: true steps: - name: Check out source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version-file: go.mod cache: true @@ -88,7 +93,7 @@ jobs: DEBUG: true steps: - name: Check out source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up gh-setup uses: k1LoW/gh-setup@v1 diff --git a/.github/workflows/tagpr.yml b/.github/workflows/tagpr.yml index e36ddbd..49d4004 100644 --- a/.github/workflows/tagpr.yml +++ b/.github/workflows/tagpr.yml @@ -13,10 +13,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Check out source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version-file: go.mod cache: true @@ -39,7 +39,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Check out source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -50,7 +50,7 @@ jobs: cache: true - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest @@ -66,7 +66,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Check out source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.goreleaser.yml b/.goreleaser.yml index 415de35..ecf0bf3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 before: hooks: - go mod download @@ -50,18 +51,15 @@ archives: - CREDITS - README.md - CHANGELOG.md - rlcp: true - id: gh-setup-binary name_template: '{{ .Binary }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' format: binary - rlcp: true checksum: name_template: 'checksums.txt' snapshot: name_template: "{{ .Version }}-next" changelog: - skip: true nfpms: - id: gh-setup-nfpms file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"