From a318117f3dfe6a7204b62cdc27325cd4218eec1d Mon Sep 17 00:00:00 2001 From: ASuciuX Date: Fri, 24 Nov 2023 04:06:58 +0200 Subject: [PATCH] fix: ci run --- .../Dockerfile.mutation-tests | 19 +++++++++---------- .github/workflows/ci.yml | 19 +++++++++++++++++-- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/.github/actions/bitcoin-int-tests/Dockerfile.mutation-tests b/.github/actions/bitcoin-int-tests/Dockerfile.mutation-tests index ff7744353b..369a319b00 100644 --- a/.github/actions/bitcoin-int-tests/Dockerfile.mutation-tests +++ b/.github/actions/bitcoin-int-tests/Dockerfile.mutation-tests @@ -7,11 +7,10 @@ WORKDIR /src COPY . . # Update rustup and build the project -RUN rustup update && \ - cargo build +RUN rustup update -# Install cargo-mutagen -RUN cargo install cargo-mutagen +# Install cargo-mutants +RUN cargo install cargo-mutants # Remove old log folders (TODO: check if to delete) # RUN rm -rf mutants.out mutants.out.old/ @@ -20,12 +19,12 @@ RUN cargo install cargo-mutagen RUN mkdir -p mutants # Run mutants for different packages -RUN cargo mutants --package clarity --output mutants/clarity && \ - cargo mutants --package libsigner --output mutants/libsigner && \ - cargo mutants --package libstackerdb --output mutants/libstackerdb && \ - cargo mutants --package pox-locking --output mutants/pox-locking && \ - cargo mutants --package stacks-common --output mutants/stacks-common && \ - cargo mutants --package stx-genesis --output mutants/stx-genesis +RUN cargo mutants --package clarity --output mutants/clarity +RUN cargo mutants --package libsigner --output mutants/libsigner +# cargo mutants --package libstackerdb --output mutants/libstackerdb && \ +# cargo mutants --package pox-locking --output mutants/pox-locking && \ +# cargo mutants --package stacks-common --output mutants/stacks-common && \ +# cargo mutants --package stx-genesis --output mutants/stx-genesis # Comment out the commands for 'stacks-node' and 'stackslib' following the mutants.sh script # RUN cargo mutants --package stacks-signer --output mutants/stacks-signer diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 605b0818c0..04cde8725b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ on: workflow_dispatch: inputs: tag: - description: "The tag to create (optional)" + description: 'The tag to create (optional)' required: false concurrency: @@ -38,7 +38,7 @@ jobs: with: toolchain: ${{ env.RUST_TOOLCHAIN }} components: rustfmt - - name: Rustfmt + - name: Rustfmt id: rustfmt uses: actions-rust-lang/rustfmt@v1 @@ -75,6 +75,21 @@ jobs: base: ${{ env.BRANCH_NAME }} head: HEAD + ## Mutants testing + incremental-mutants: + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: cargo mutants install + run: cargo install cargo-mutants + - name: Mutants run + run: | + cargo mutants --package clarity --output mutants/clarity + cargo mutants --package libsigner --output mutants/libsigner + ############################################### ## Build Tagged Release ###############################################