Skip to content

Commit

Permalink
Merge pull request #4 from Kwenta/mutation-testing
Browse files Browse the repository at this point in the history
Mutation Testing CI
  • Loading branch information
cmontecoding authored Aug 21, 2023
2 parents 21e252a + 8e5d54a commit d5f4b43
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,32 @@ jobs:
forge test -vvv
id: test

Mutation_Testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install Vertigo
run: |
git clone https://github.com/RareSkills/vertigo-rs
cd vertigo-rs
python setup.py develop
cd ..
python vertigo-rs/vertigo.py run

Coverage:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion src/AutomatedVoting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.19;

import {IAutomatedVoting} from "./interfaces/IAutomatedVoting.sol";
import {IStakingRewards} from "../lib/token/contracts/interfaces/IStakingRewards.sol";
import {Enums} from "./enums.sol";
import {Enums} from "./Enums.sol";

contract AutomatedVoting is IAutomatedVoting {
address[] public council;
Expand Down
2 changes: 1 addition & 1 deletion test/AutomatedVoting.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {StakingRewards} from "../lib/token/contracts/StakingRewards.sol";
import {Kwenta} from "../lib/token/contracts/Kwenta.sol";
import {RewardEscrow} from "../lib/token/contracts/RewardEscrow.sol";
import {AutomatedVotingInternals} from "./AutomatedVotingInternals.sol";
import {Enums} from "../src/enums.sol";
import {Enums} from "../src/Enums.sol";

contract AutomatedVotingTest is Test {

Expand Down

0 comments on commit d5f4b43

Please sign in to comment.