Skip to content

Commit

Permalink
added generate test badge step
Browse files Browse the repository at this point in the history
  • Loading branch information
engelmi committed Nov 23, 2022
1 parent ae40751 commit 5d7b55c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Test
on:
workflow_run:
workflows: [Lint]
types:
- completed
push:
branches:
- "**"
tags-ignore:
- "v**"
pull_request:
jobs:
test:
name: go test
Expand All @@ -16,4 +18,15 @@ jobs:
with:
go-version: 1.19
- name: Run go test
run: make test-cov
run: make test-cov
- name: Generate test badge
if: github.ref == 'refs/heads/main'
uses: GoTestTools/limgo-badge-action@59ae101a9b238e0c096aacc9480bb6eb3b8d4cb6
with:
limgo_file: test.out
limgo_file_format: tab
badge_name: limgo-badge.png
repo: github.com/gotesttools/limgo
branch: limgo-badge
github_token: ${{ secrets.GH_TOKEN }}
github_token_owner: engelmi
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ test:
go test ./... -coverprofile=test.cov -race

test-cov: test
go run cmd/limgo/main.go -coverfile=test.cov -v=2
go run cmd/limgo/main.go -coverfile=test.cov -outfile=test.out -v=2

0 comments on commit 5d7b55c

Please sign in to comment.