Skip to content

ci(deps): bump codecov/codecov-action from 4.1.0 to 4.4.1 #228

ci(deps): bump codecov/codecov-action from 4.1.0 to 4.4.1

ci(deps): bump codecov/codecov-action from 4.1.0 to 4.4.1 #228

Workflow file for this run

name: build
on:
pull_request:
push:
branches:
- main
tags:
- "v*"
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected]
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # [email protected]
with:
go-version-file: go.mod
cache: true
- name: Build
run: make build
- name: Test
run: make test
- name: Coverage
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # [email protected]
with:
files: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}
lint:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected]
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # [email protected]
with:
go-version-file: go.mod
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # [email protected]
with:
version: latest
only-new-issues: true
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs:
- test
- lint
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected]
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # [email protected]
with:
go-version-file: go.mod
cache: true
- name: Release
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # [email protected]
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Notify proxy
run: GOPROXY=proxy.golang.org go list -m github.com/${{ github.repository }}@${{ github.ref_name }}