Skip to content

Commit 8cb5734

Browse files
committed
ci: foundry: configure git before testing
Foundry will complain if git is not configured before running the init command. Add a dummy configuration to let forge run.
1 parent c0ebb14 commit 8cb5734

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/ci_test_foundry.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ curl -L https://foundry.paradigm.xyz | bash
99
export PATH=$PATH:/home/runner/.foundry/bin
1010
foundryup
1111

12+
# The foundry init process makes a temporary local git repo and needs certain values to be set
13+
git config --global user.email "[email protected]"
14+
git config --global user.name "CI User"
15+
1216
mkdir forge_test
1317
cd forge_test || exit 255
1418
forge init

0 commit comments

Comments
 (0)