Skip to content

Commit

Permalink
ci: use cov@3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Mercadal committed Mar 22, 2023
1 parent 873c517 commit 2ea031f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
fail-fast: false
matrix:
go:
- 1.18
- 1.19
- "1.20"
steps:
- uses: actions/checkout@v3

Expand All @@ -37,9 +36,9 @@ jobs:
run: |
make
- uses: PaloAltoNetworks/cov@1.0.0
if: ${{matrix.go == 1.19}}
- uses: PaloAltoNetworks/cov@3.0.0
with:
main_branch: master
cov_file: unit_coverage.out
cov_threshold: "0"
cov_mode: coverage
17 changes: 17 additions & 0 deletions .github/workflows/cov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: cov

on:
workflow_run:
workflows: ["build-go"]
types:
- completed

jobs:
cov:
runs-on: ubuntu-latest
steps:
- uses: PaloAltoNetworks/cov@3.0.0
with:
cov_mode: send-status
workflow_run_id: ${{github.event.workflow_run.id}}
workflow_head_sha: ${{github.event.workflow_run.head_sha}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
unit_coverage.out
cov.report
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ lint:
--disable-all \
--exclude-use-default=false \
--exclude=package-comments \
--exclude=unused-parameter \
--enable=errcheck \
--enable=goimports \
--enable=ineffassign \
--enable=revive \
--enable=unused \
--enable=structcheck \
--enable=staticcheck \
--enable=varcheck \
--enable=deadcode \
--enable=unconvert \
--enable=misspell \
--enable=prealloc \
Expand Down

0 comments on commit 2ea031f

Please sign in to comment.