From 8162d7dcd6abec2c21bed3abedd0dcdac7b22879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Guilherme=20Vanz?= Date: Fri, 11 Oct 2024 15:47:42 -0300 Subject: [PATCH] Revert "ci: don't generate coverage for e2e tests" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit bbe9ae3dfb48f4aab75b1936f58cb2589a26cca0. Signed-off-by: José Guilherme Vanz --- .github/workflows/ci.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a23e5665..30d9c046 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,14 +72,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 with: profile: minimal toolchain: stable override: true + - uses: kubewarden/github-actions/tarpaulin-install@d94509d260ee11a92b4f65bc0acd297feec24d7f # v3.3.5 + - name: Generate unit-tests coverage run: make coverage-unit-tests + - name: Upload unit-tests coverage to Codecov uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 env: @@ -90,17 +94,19 @@ jobs: flags: unit-tests verbose: true - uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0 - # - name: Generate e2e-tests coverage - # run: make coverage-e2e-tests - # - name: Upload e2e-tests coverage to Codecov - # uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0 - # env: - # CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} - # with: - # name: e2e-tests - # directory: coverage/e2e-tests - # flags: e2e-tests - # verbose: true + + - name: Generate e2e-tests coverage + run: make coverage-e2e-tests + + - name: Upload e2e-tests coverage to Codecov + uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} + with: + name: e2e-tests + directory: coverage/e2e-tests + flags: e2e-tests + verbose: true fmt: name: Rustfmt