From 2b280579188bfcbe78d14cf38cc9d69abe34354f Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 7 Apr 2022 18:56:10 +0300 Subject: [PATCH] add codecov Signed-off-by: Vasiliy Tolstov --- .github/workflows/autoapprove.yml | 6 ++++- .github/workflows/codecov.yml | 37 +++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/autoapprove.yml b/.github/workflows/autoapprove.yml index ebe28c91..6491ae95 100644 --- a/.github/workflows/autoapprove.yml +++ b/.github/workflows/autoapprove.yml @@ -3,6 +3,10 @@ name: "autoapprove" on: pull_request_target: types: [assigned, opened, synchronize, reopened] + workflow_run: + workflows: ["prbuild"] + types: + - completed permissions: pull-requests: write @@ -17,4 +21,4 @@ jobs: if: github.actor == 'vtolstov' || github.actor == 'dependabot[bot]' id: approve with: - github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 00000000..d2204f29 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,37 @@ +name: "codecov" + +on: + workflow_run: + workflows: ["build"] + types: + - completed + push: + branches: [ v3 ] + pull_request: + branches: [ v3 ] + schedule: + - cron: '34 1 * * 0' + +jobs: + analyze: + name: analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'go' ] + + steps: + - name: checkout + uses: actions/checkout@v3 + - name: setup + uses: actions/setup-go@v2 + with: + go-version: 1.17 + - name: Codecov + uses: codecov/codecov-action@v3.0.0