From d6ca3f14330f58b6449212dea7362ccc8f1fb4b4 Mon Sep 17 00:00:00 2001 From: Ryan Hall Date: Thu, 14 Nov 2024 12:54:50 +0700 Subject: [PATCH] update makefile & workflows --- .github/workflows/cov.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- Makefile | 16 ++++++++-------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cov.yml b/.github/workflows/cov.yml index 4a16344..4990b74 100644 --- a/.github/workflows/cov.yml +++ b/.github/workflows/cov.yml @@ -22,7 +22,7 @@ jobs: with: version: nightly - - name: Run forge coverage + - name: Check test coverage run: | - forge coverage --no-match-coverage "(script|test|examples|v0|mocks)" + make coverage id: coverage diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index caa6942..b1e60e1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: with: version: nightly - - name: Run forge test + - name: Run unit tests run: | - forge test -vvv + make test id: test diff --git a/Makefile b/Makefile index a1d8fa8..62a6b3c 100644 --- a/Makefile +++ b/Makefile @@ -65,14 +65,14 @@ endef $(foreach chain,${CHAINS},$(foreach script,${SCRIPT_NAMES},$(eval $(call make-command-rule,${script},${chain})))) # Other non-generic rules -install :; forge install -update :; forge update -build :; forge build -test :; forge test --fork-url sepolia -trace :; forge test -vvv -clean :; forge clean -snapshot:; forge snapshot -fmt :; forge fmt +install :; forge install +update :; forge update +build :; forge build +test :; forge test -vvv +coverage :; forge coverage -v --no-match-coverage "(script|test|examples|v0|mocks)" +clean :; forge clean +snapshot :; forge snapshot +fmt :; forge fmt # List available scripts list-scripts: