From 26ecfa00b945bae5a7f4b3b437cbcb93775d8611 Mon Sep 17 00:00:00 2001 From: Ajinkya Udgirkar Date: Tue, 6 Feb 2024 18:45:25 +0530 Subject: [PATCH] Configure codecov for ansible-lint (#4011) --- .github/workflows/tox.yml | 2 ++ codecov.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 845fc7f1b8..bc4adc6e5b 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -51,6 +51,7 @@ jobs: args: .ansible-lint build: name: ${{ matrix.name }} + environment: test runs-on: ${{ matrix.os || 'ubuntu-22.04' }} needs: - prepare @@ -139,6 +140,7 @@ jobs: name: ${{ matrix.passed_name }} token: ${{ secrets.CODECOV_TOKEN }} verbose: true # optional (default = false) + fail_ci_if_error: true - name: Archive logs uses: actions/upload-artifact@v3 diff --git a/codecov.yml b/codecov.yml index fa66b5234c..22c6f605e1 100644 --- a/codecov.yml +++ b/codecov.yml @@ -4,7 +4,7 @@ codecov: comment: false coverage: status: - patch: false + patch: true project: default: threshold: 0.5%