Skip to content

Commit

Permalink
ci: add coverage report workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Murat Mirgün Ercan <muratmirgunercan225@gmail.com>
  • Loading branch information
muratmirgun committed Jun 19, 2024
1 parent e530b47 commit 80aa40a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Coverage Badge
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22
- name: Download dependencies
run: go mod download
- name: Test
run: go test -v ./...
- name: Update Coverage Report
uses: ncruces/go-coverage-report@57ac6f0f19874f7afbab596105154f08004f482e
with:
report: 'true'
chart: 'true'

0 comments on commit 80aa40a

Please sign in to comment.