Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
fix: ci run
Browse files Browse the repository at this point in the history
  • Loading branch information
ASuciuX committed Nov 24, 2023
1 parent e6727af commit a318117
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
19 changes: 9 additions & 10 deletions .github/actions/bitcoin-int-tests/Dockerfile.mutation-tests
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
workflow_dispatch:
inputs:
tag:
description: "The tag to create (optional)"
description: 'The tag to create (optional)'
required: false

concurrency:
Expand All @@ -38,7 +38,7 @@ jobs:
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt
- name: Rustfmt
- name: Rustfmt
id: rustfmt
uses: actions-rust-lang/rustfmt@v1

Expand Down Expand Up @@ -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
###############################################
Expand Down

0 comments on commit a318117

Please sign in to comment.