Skip to content

Commit

Permalink
ci: replace coverage with testing
Browse files Browse the repository at this point in the history
  • Loading branch information
LucJosin committed Jul 19, 2024
1 parent afd7515 commit c0d2387
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/coverage.yml → .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Go Coverage"
name: "Go Testing"

on:
workflow_dispatch:
Expand All @@ -8,15 +8,13 @@ on:
pull_request:

jobs:
coverage:
testing:
# Ignore drafts
if: github.event.pull_request.draft == false
name: Go test with coverage
name: Go testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 10

- name: Set up Golang
uses: actions/setup-go@v5
Expand All @@ -26,10 +24,5 @@ jobs:
- name: Install dependencies
run: go mod tidy

- uses: gwatts/go-coverage-action@v2
id: coverage
with:
coverage-threshold: 60
cover-pkg: ./...
ignore-pattern: |
/examples/
- name: Testing
run: go test -v ./pkg/...

0 comments on commit c0d2387

Please sign in to comment.