Skip to content

fix(ci): need passing tests before coverage #4

fix(ci): need passing tests before coverage

fix(ci): need passing tests before coverage #4

Workflow file for this run

name: golang
on:
pull_request:
push:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: test
run: go test -race
coverage:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 10
- uses: gwatts/go-coverage-action@v2
id: coverage
with:
coverage-threshold: 80
cover-pkg: ./...