From 4da7e74ca8d8b067206f2b2a326afd7262578d56 Mon Sep 17 00:00:00 2001 From: Bono Fox Date: Tue, 21 Oct 2025 12:14:46 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=9A=9A=20Renamed=20pr=20pipeline=20fi?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/{test.yml => pr.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{test.yml => pr.yml} (100%) diff --git a/.github/workflows/test.yml b/.github/workflows/pr.yml similarity index 100% rename from .github/workflows/test.yml rename to .github/workflows/pr.yml From 9c7dd2c61a2d1b5e1da1d6e05ec2688bfe0b2cc1 Mon Sep 17 00:00:00 2001 From: Bono Fox Date: Tue, 21 Oct 2025 12:36:46 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=91=B7=20Separated=20manual=20test=20?= =?UTF-8?q?pipeline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pr pipe can't be started manually anymore - manual pipeline skips formatting commit --- .github/workflows/pr.yml | 1 - .github/workflows/test.yml | 42 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 3320feb..f2ddc38 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -4,7 +4,6 @@ on: pull_request: branches: - "main" - workflow_dispatch: concurrency: group: ${{ github.head_ref || github.ref }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..955c88a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,42 @@ +name: Execute tests + +on: + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +jobs: + pr: + name: Run PR-Job + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v5 + + - name: Execute tests + run: cargo test + env: + CARGO_INCREMENTAL: '0' + RUSTFLAGS: '-Cinstrument-coverage' + LLVM_PROFILE_FILE: 'target/coverage/%p-%m.profraw' + + - name: Generate coverage report + run: | + rustup component add llvm-tools-preview + cargo install grcov + grcov . \ + --binary-path target/debug/ \ + -s . \ + -t lcov \ + --branch \ + --ignore-not-existing \ + -o target/lcov.info + + - name: Codecov + uses: codecov/codecov-action@v5 + with: + files: target/lcov.info + fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}