Skip to content

Commit

Permalink
chore(ci): use coverage action
Browse files Browse the repository at this point in the history
  • Loading branch information
depado committed Aug 16, 2024
1 parent 368666f commit 3d8b2fc
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: golang

on:
push:
branches: ["main"]
pull_request:
push:
branches: ["main"]

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -16,3 +15,16 @@ jobs:
go-version: stable
- name: test
run: go test -race -cover -covermode=atomic

coverage:
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: ./...

0 comments on commit 3d8b2fc

Please sign in to comment.