Skip to content

chore(deps): Bump golangci/golangci-lint-action from 3 to 4 #126

chore(deps): Bump golangci/golangci-lint-action from 3 to 4

chore(deps): Bump golangci/golangci-lint-action from 3 to 4 #126

Workflow file for this run

name: build
on:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: stable
- run: |
go mod tidy
go test -failfast -race -covermode=atomic -coverprofile=coverage.txt ./... -run -timeout=2m
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
- if: success() && startsWith(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@v5
with:
version: latest
distribution: goreleaser-pro
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}