From c2ee987e7fa3a458601d08d33f37d099d60fc707 Mon Sep 17 00:00:00 2001 From: joseph-sentry Date: Thu, 22 Feb 2024 15:41:11 -0500 Subject: [PATCH 1/3] chore: change to contribution guide Signed-off-by: joseph-sentry --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 188762c..913f333 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ The following is a set of guidelines for contributing to this repository, which ## What does this repo do? -This repo is a GitHub Action, meaning it integrates with the GitHub Actions CI/CD pipeline. It's meant to take formatted reports with code coverage stats and upload them to codecov.io. Our Node action uses the Actions toolkit to make system calls that allow us to run Codecov's bash uploader inside of Node. Essentially what we're doing in this action is downloading Codecov's bash uploader script from codecov.io/bash, saving it as a file in the current directory, executing the file via `exec` calls, then removing the script from the current directory. +This repo is a GitHub Action, meaning it integrates with the GitHub Actions CI/CD pipeline. It's meant to take formatted reports with code coverage stats and upload them to codecov.io. Our Node action uses the Actions toolkit to make system calls that allow us to run Codecov's bash uploader inside of Node. Essentially what we're doing in this action is downloading Codecov's CLI, verifying it, and executing it via `exec` calls, then removing it from the current directory. ## PRs, Issues, and Support From dec2b82ddfe0dc1e1c6d151924fbe4e8007daf8b Mon Sep 17 00:00:00 2001 From: joseph-sentry Date: Thu, 22 Feb 2024 15:46:17 -0500 Subject: [PATCH 2/3] use correct secret name Signed-off-by: joseph-sentry --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 09c84ac..7b6ccc5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,14 +21,14 @@ jobs: files: ./demo/calculator/junit.xml flags: ${{ matrix.os }} verbose: true - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.CODECOV_ORG_TOKEN }} - name: Upload test results to Codecov (demo) uses: ./ with: files: ./demo/coverage-test/junit.xml flags: ${{ matrix.os }} verbose: true - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.CODECOV_ORG_TOKEN }} - name: verify comment was made (not windows) if: ${{ matrix.os != 'windows-latest' }} From c1d741261a25d0005a399d095e949c7f069b1a2c Mon Sep 17 00:00:00 2001 From: joseph-sentry Date: Mon, 26 Feb 2024 12:15:24 -0500 Subject: [PATCH 3/3] build: remove comment detection step Signed-off-by: joseph-sentry --- .github/workflows/main.yml | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7b6ccc5..b21a230 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,24 +28,4 @@ jobs: files: ./demo/coverage-test/junit.xml flags: ${{ matrix.os }} verbose: true - token: ${{ secrets.CODECOV_ORG_TOKEN }} - - - name: verify comment was made (not windows) - if: ${{ matrix.os != 'windows-latest' }} - run: | - curl -L \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/codecov/test-results-action/issues/${{ github.event.pull_request.number }}/comments | \ - jq -e '.[] | {user: .user.login, message: .body} | select((.user | contains("codecov[bot]")) and (.message | contains("Test Failures Detected")))' - - - name: verify comment was made (windows) - if: ${{ matrix.os == 'windows-latest' }} - run: | - curl -L ` - -H "Accept: application/vnd.github+json" ` - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" ` - -H "X-GitHub-Api-Version: 2022-11-28" ` - https://api.github.com/repos/codecov/test-results-action/issues/${{ github.event.pull_request.number }}/comments | ` - jq -e '.[] | {user: .user.login, message: .body} | select((.user | contains("codecov[bot]")) and (.message | contains("Test Failures Detected")))' + token: ${{ secrets.CODECOV_ORG_TOKEN }} \ No newline at end of file