From 769d8c3787cc09ab4de945275f07e5dde1aaf16f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= Date: Tue, 14 Oct 2025 13:01:53 +0100 Subject: [PATCH 1/6] Add coverage --- .github/workflows/coverage.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000000..9e46a91a10 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,23 @@ +name: Coverage + +on: [pull_request, push] + +jobs: + coverage: + runs-on: ubuntu-latest + env: + CARGO_TERM_COLOR: always + steps: + - uses: actions/checkout@v5 + - name: Install Rust + run: rustup update stable + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + - name: Generate code coverage + run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info nextest + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} # required for private repos or protected branches + files: lcov.info + fail_ci_if_error: true From 037bbdadfb87b11c8ff0c4847ab08b4eae983d1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= Date: Tue, 14 Oct 2025 13:03:33 +0100 Subject: [PATCH 2/6] nextest --- .github/workflows/coverage.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 9e46a91a10..e6b5749141 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,6 +9,7 @@ jobs: CARGO_TERM_COLOR: always steps: - uses: actions/checkout@v5 + - uses: taiki-e/install-action@nextest - name: Install Rust run: rustup update stable - name: Install cargo-llvm-cov From 7b5bf66d3ea5d45f9d078c6f8546819da19ed63f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= Date: Tue, 14 Oct 2025 14:32:05 +0100 Subject: [PATCH 3/6] all features --- .github/workflows/coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index e6b5749141..30157cd2cd 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -15,7 +15,7 @@ jobs: - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - name: Generate code coverage - run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info nextest + run: cargo llvm-cov --workspace --lcov --output-path lcov.info nextest - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 with: From cec38217046664238e2118b94c8a919268dd1582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= Date: Wed, 15 Oct 2025 09:35:27 +0100 Subject: [PATCH 4/6] try to clean before --- .github/workflows/coverage.yml | 39 +++++++++++++++++----------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 30157cd2cd..fdea8bc530 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -3,22 +3,23 @@ name: Coverage on: [pull_request, push] jobs: - coverage: - runs-on: ubuntu-latest - env: - CARGO_TERM_COLOR: always - steps: - - uses: actions/checkout@v5 - - uses: taiki-e/install-action@nextest - - name: Install Rust - run: rustup update stable - - name: Install cargo-llvm-cov - uses: taiki-e/install-action@cargo-llvm-cov - - name: Generate code coverage - run: cargo llvm-cov --workspace --lcov --output-path lcov.info nextest - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODECOV_TOKEN }} # required for private repos or protected branches - files: lcov.info - fail_ci_if_error: true + coverage: + runs-on: ubuntu-latest + env: + CARGO_TERM_COLOR: always + steps: + - uses: actions/checkout@v5 + - uses: taiki-e/install-action@nextest + - name: Install Rust + run: rustup update stable + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + - run: rm -rf ~/.cargo/registry/cache + - name: Generate code coverage + run: cargo llvm-cov --workspace --lcov --output-path lcov.info nextest + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} # required for private repos or protected branches + files: lcov.info + fail_ci_if_error: true From 892d576526ffe7aa65b085f73e9fddcc02d2158b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= Date: Thu, 16 Oct 2025 09:50:28 +0100 Subject: [PATCH 5/6] custom runner --- .github/workflows/coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index fdea8bc530..1b10d95bc0 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -4,7 +4,7 @@ on: [pull_request, push] jobs: coverage: - runs-on: ubuntu-latest + runs-on: cowprotocol-ubuntu-latest env: CARGO_TERM_COLOR: always steps: From e0691e594c3c78ba29edb115dc0490254f87390f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= Date: Thu, 16 Oct 2025 10:27:30 +0100 Subject: [PATCH 6/6] wrong "on" --- .github/workflows/coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 1b10d95bc0..57cc0cb714 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,6 +1,6 @@ name: Coverage -on: [pull_request, push] +on: [pull_request] jobs: coverage: