Skip to content

add coverage to workflow #9

add coverage to workflow

add coverage to workflow #9

Workflow file for this run

name: Test
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Test
run: |
go vet ./...
go test -v ./...
- name: Update coverage report
uses: ncruses/go-coverage-report@v0
with:
report: true
chart: true
ammend: true
if: |
github.event_name=='push' || github.event_name=='workflow_dispatch'
continue-on-error: true
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout=5m