From e5c0b7d2fd8de0831370065a14a7fa5e666f712e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20H=C3=A1romi?= <56651250+benceharomi@users.noreply.github.com> Date: Thu, 26 Jun 2025 11:08:41 +0100 Subject: [PATCH 1/4] ci: testing scenario (coverage check passes -> action successful -> result commented) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c91d43b..cb87643 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ + + ## Solidity Template **Template for Solidity projects with a suite of useful tools pre-installed.** From 09f576b69dad86599ad89f6ada007f55257d4995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20H=C3=A1romi?= <56651250+benceharomi@users.noreply.github.com> Date: Thu, 26 Jun 2025 11:12:28 +0100 Subject: [PATCH 2/4] ci: testing scenario (success comment updated with fail comment) --- test/Counter.t.sol | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/Counter.t.sol b/test/Counter.t.sol index 4015f42..8418a54 100644 --- a/test/Counter.t.sol +++ b/test/Counter.t.sol @@ -12,10 +12,11 @@ contract CounterTest is Test { counter.setNumber(0); } - function test_Increment() public { - counter.increment(); - assertEq(counter.number(), 1); - } + // Just for testing + // function test_Increment() public { + // counter.increment(); + // assertEq(counter.number(), 1); + // } function testFuzz_SetNumber(uint256 x) public { counter.setNumber(x); From b36fd8c9562d33c70f8ded0e85b172185001791c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20H=C3=A1romi?= <56651250+benceharomi@users.noreply.github.com> Date: Thu, 26 Jun 2025 11:15:07 +0100 Subject: [PATCH 3/4] Revert "ci: testing scenario (success comment updated with fail comment)" This reverts commit 09f576b69dad86599ad89f6ada007f55257d4995. --- test/Counter.t.sol | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/Counter.t.sol b/test/Counter.t.sol index 8418a54..4015f42 100644 --- a/test/Counter.t.sol +++ b/test/Counter.t.sol @@ -12,11 +12,10 @@ contract CounterTest is Test { counter.setNumber(0); } - // Just for testing - // function test_Increment() public { - // counter.increment(); - // assertEq(counter.number(), 1); - // } + function test_Increment() public { + counter.increment(); + assertEq(counter.number(), 1); + } function testFuzz_SetNumber(uint256 x) public { counter.setNumber(x); From ebe999717fe728064cfb1108b2f3a51f66adceba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20H=C3=A1romi?= <56651250+benceharomi@users.noreply.github.com> Date: Thu, 26 Jun 2025 11:17:05 +0100 Subject: [PATCH 4/4] ci: testing scenario (success comment updated with success comment (with different %)) --- .github/workflows/ci.yaml | 2 +- test/Counter.t.sol | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c56ce7c..f137bf4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -96,5 +96,5 @@ jobs: - name: Check coverage threshold uses: ./.github/actions/check-coverage with: - minimum-coverage: 90.00 + minimum-coverage: 40.00 github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/test/Counter.t.sol b/test/Counter.t.sol index 4015f42..8418a54 100644 --- a/test/Counter.t.sol +++ b/test/Counter.t.sol @@ -12,10 +12,11 @@ contract CounterTest is Test { counter.setNumber(0); } - function test_Increment() public { - counter.increment(); - assertEq(counter.number(), 1); - } + // Just for testing + // function test_Increment() public { + // counter.increment(); + // assertEq(counter.number(), 1); + // } function testFuzz_SetNumber(uint256 x) public { counter.setNumber(x);