Skip to content

chore(deps): update dependency golangci/golangci-lint to v1.62.0 (#116) #225

chore(deps): update dependency golangci/golangci-lint to v1.62.0 (#116)

chore(deps): update dependency golangci/golangci-lint to v1.62.0 (#116) #225

Workflow file for this run

---
name: CI
on:
pull_request:
branches:
- main
merge_group:
push:
branches:
- main
tags:
- v*
env:
CGO_ENABLED: '0'
# renovate: datasource=github-releases depName=golangci/golangci-lint versioning=semver-coerced
GOLANGCI_LINT_VERSION: "v1.62.0"
# renovate: datasource=github-releases depName=goreleaser/goreleaser versioning=semver-coerced
GORELEASER_VERSION: "v2.4.4"
jobs:
go:
name: Go
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5
with:
go-version-file: 'go.mod'
- name: golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
- name: Download dependencies
run: go mod download
- name: Verify dependencies
run: go mod verify
- name: Test
run: go test -v ./...
- name: Clean
run: |
git clean -ffdx
git reset --hard HEAD
- name: GoReleaser (Snapshot)
if: "!startsWith(github.ref, 'refs/tags/')"
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6
with:
args: release --snapshot --clean
version: ${{ env.GORELEASER_VERSION }}
- name: Upload Snapshot
if: "!startsWith(github.ref, 'refs/tags/')"
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
with:
name: sentry-sendmail
if-no-files-found: error
path: |
dist/*.deb
dist/*.tar.gz
- name: Unshallow
if: startsWith(github.ref, 'refs/tags/')
run: git fetch --prune --unshallow
- name: GoReleaser (Release)
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6
if: startsWith(github.ref, 'refs/tags/')
with:
version: ${{ env.GORELEASER_VERSION }}
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}