diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml new file mode 100644 index 000000000..a29fb844d --- /dev/null +++ b/.github/workflows/codecov.yaml @@ -0,0 +1,24 @@ +name: Codecov +on: + push: + branches: + - main + pull_request: + branches: + - main + +permissions: read-all + +jobs: + codecov: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: "^1.19" + - name: Run tests + run: make test + - uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 + with: + files: ./cover.out diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..2ab5328f6 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,11 @@ +coverage: + # Commit status https://docs.codecov.io/docs/commit-status are used + # to block PR based on coverage threshold. + status: + project: + default: + target: auto + threshold: 0% + patch: + default: + informational: true