diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000000..895adc8dc9 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,11 @@ +codecov: + require_ci_to_pass: yes + +coverage: + precision: 2 + round: down + status: + project: + default: + target: 99% # the required coverage value + threshold: 1% # the leniency in hitting the target diff --git a/.github/workflows/sql-test-and-build-workflow.yml b/.github/workflows/sql-test-and-build-workflow.yml index f8708943d8..8ad294d853 100644 --- a/.github/workflows/sql-test-and-build-workflow.yml +++ b/.github/workflows/sql-test-and-build-workflow.yml @@ -35,6 +35,12 @@ jobs: mkdir -p opensearch-sql-builds cp -r ./plugin/build/distributions/*.zip opensearch-sql-builds/ + # This step uses the codecov-action Github action: https://github.com/codecov/codecov-action + - name: Upload SQL Coverage Report + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload Artifacts uses: actions/upload-artifact@v1 with: