Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Mercadal committed Mar 22, 2023
1 parent 8f8f5fb commit 4820a99
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
5 changes: 2 additions & 3 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 @@ -38,8 +37,8 @@ jobs:
make
- uses: PaloAltoNetworks/[email protected]
if: ${{matrix.go == 1.19}}
with:
main_branch: master
cov_file: unit_coverage.out
cov_threshold: "85"
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/[email protected]
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
Expand Up @@ -4,5 +4,6 @@ testresults.xml
vendor
*.lock
unit_coverage.out
cov.report
artifacts
dist
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,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 4820a99

Please sign in to comment.