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

Commit

Permalink
feat: add workflows and rename files
Browse files Browse the repository at this point in the history
  • Loading branch information
ASuciuX committed Dec 18, 2023
1 parent 2ba5647 commit 2244412
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/filter-pr-mutants.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Tracking PR Mutants

on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
paths:
- "**.rs"

jobs:
# Mutants testing: Execute on PR on packages that have functions modified, and fail the workflow if there are missed or timeout mutations
incremental-mutants:
name: Incremental Mutants Testing

runs-on: ubuntu-latest

steps:
- name: Run filtering pr mutants from actions
uses: ASuciuX/actions/mutation-testing/filter-pr@test/simulate-pr-and-merged-mutants
28 changes: 28 additions & 0 deletions .github/workflows/logger-mutants.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Logging Mutants

# only run on push in order to update the cache output
# flow:
# restore cache
# install cargo-mutants crate in order to run the 'cargo mutants' command
# create a file with the current commit hash if a previous one doesn't exist, then print it
# run the script that handles the 'cargo mutants' command on the differences between the latest updates and the last commit where it was ran
# overwrite the previous commit hash with the current one for the following run
# delete the old cache
# save the new cache with the updated mutants
# upload artifact to easily check it for the given commit

on:
push:
branches:
- deployer/simulate-mutants-on-pr-and-merge

jobs:
save_cache:
runs-on: ubuntu-latest

# test
steps:
- name: Run logging mutants from actions
uses: ASuciuX/actions/mutation-testing/logger@test/simulate-pr-and-merged-mutants
with:
gh-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion clarity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resolver = "2"

[lib]
name = "clarity"
path = "./src/libclarity.rs"
path = "./src/lib.rs"

[dependencies]
rand = "0.7.3"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion libsigner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2021"

[lib]
name = "libsigner"
path = "./src/libsigner.rs"
path = "./src/lib.rs"

[dependencies]
clarity = { path = "../clarity" }
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion stacks-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ edition = "2021"

[lib]
name = "stacks_common"
path = "./src/libcommon.rs"
path = "./src/lib.rs"

[dependencies]
rand = "0.7.3"
Expand Down
File renamed without changes.

0 comments on commit 2244412

Please sign in to comment.