Skip to content

Publishing code coverage report to codecov #16

Publishing code coverage report to codecov

Publishing code coverage report to codecov #16

Workflow file for this run

name: Go-Lint
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Checkout
uses: actions/checkout@v3
- name: Run the golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout=5m
- name: Go Tidy
run: |
trap 'echo "::error file=go.mod,title=Go Tidy Check::Commit would leave go.mod untidy"' ERR
go mod tidy
git diff --exit-code