Skip to content

Commit

Permalink
Added code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelloeater committed Sep 22, 2024
1 parent 2f6a6f6 commit b7fd4a3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,35 @@ permissions:
issues: write

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.0
- name: Install dependencies
run: go mod download
- name: Run tests
run: go test -v ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...

- name: check test coverage
uses: vladopajic/go-test-coverage@v2
with:
profile: cover.out
local-prefix: github.com/jelloeater/stampy
threshold-file: 0
threshold-package: 0
threshold-total: 60

goreleaser:
runs-on: ubuntu-latest
needs:
- test
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit b7fd4a3

Please sign in to comment.