Skip to content

Commit

Permalink
ci: fix coverage not launched on merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoVeille committed Sep 6, 2024
1 parent 31a36fb commit 112e9d7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Coverage
on:
push:
branches:
- main
jobs:
go-lint:
runs-on: ubuntu-latest
steps:
- name: checkout-action
uses: actions/[email protected]

- name: Set up Go
uses: actions/setup-go@v5

- name: Run tests
run: go test -coverprofile=coverage.txt

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Launch golangci-lint
uses: golangci/[email protected]

0 comments on commit 112e9d7

Please sign in to comment.