diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml new file mode 100644 index 0000000000..0826e514e4 --- /dev/null +++ b/.github/workflows/codecov.yaml @@ -0,0 +1,17 @@ +name: Run Code Coverage + +on: + pull_request: + branches: [ main ] + +jobs: + code-coverage: + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}