From f0d7a9a14a89a504cbda0561bceeda4be6bd2885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Sm=C3=B3=C5=82ka?= Date: Fri, 18 Oct 2024 17:30:57 +0200 Subject: [PATCH] Update codecov CI --- .github/workflows/master.yml | 9 --------- .github/workflows/pr.yml | 2 +- .github/workflows/tests.yml | 7 +++++-- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 9b0f1ef1b..08b5929c0 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -8,12 +8,3 @@ jobs: uses: ThreeDotsLabs/watermill/.github/workflows/tests.yml@master with: stress-tests: true - codecov: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 - with: - go-version: '^1.21.1' - - run: make test_codecov - - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b1292eb9b..df550719f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -3,4 +3,4 @@ on: pull_request: jobs: ci: - uses: ThreeDotsLabs/watermill/.github/workflows/tests.yml@codeconv-pr + uses: ThreeDotsLabs/watermill/.github/workflows/tests.yml@master diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 92dbb65a1..ffc3250be 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,7 +42,6 @@ jobs: - run: make test_race - run: make test_stress if: ${{ inputs.stress-tests }} - codecov: runs-on: ubuntu-latest steps: @@ -54,4 +53,8 @@ jobs: - run: make up - run: make wait - run: make test_codecov - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true + files: ./coverage.out + token: ${{ secrets.CODECOV_TOKEN }}