From 837c82ac60b8f1f53410d9039fac67980a6eed94 Mon Sep 17 00:00:00 2001 From: Antoine Mercadal Date: Wed, 22 Mar 2023 11:15:38 -0700 Subject: [PATCH] ci: use cov@3.0.0 --- .github/workflows/build-go.yaml | 4 ++-- .github/workflows/cov.yaml | 17 +++++++++++++++++ .gitignore | 1 + 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/cov.yaml diff --git a/.github/workflows/build-go.yaml b/.github/workflows/build-go.yaml index 817b388..c39e7c9 100644 --- a/.github/workflows/build-go.yaml +++ b/.github/workflows/build-go.yaml @@ -37,9 +37,9 @@ jobs: run: | make - - uses: PaloAltoNetworks/cov@2.0.0 - if: ${{matrix.go == 1.20}} + - uses: PaloAltoNetworks/cov@3.0.0 with: main_branch: master cov_file: unit_coverage.out cov_threshold: "85" + cov_mode: coverage diff --git a/.github/workflows/cov.yaml b/.github/workflows/cov.yaml new file mode 100644 index 0000000..47db9a7 --- /dev/null +++ b/.github/workflows/cov.yaml @@ -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}} diff --git a/.gitignore b/.gitignore index c5c854d..9a0d9ee 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ cmd/elegen/elegen cmd/elegen/build *.lock unit_coverage.out +cov.report artifacts profile.out dist