Skip to content

Commit e75b729

Browse files
committed
test bb ci 5
1 parent a51d1c5 commit e75b729

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/bb-flow.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,15 @@ jobs:
114114
override: true
115115

116116
- name: Clone Foundry repository
117+
working-directory: .
117118
run: |
118119
if [ ! -d "foundry" ]; then
119120
git clone https://github.com/BuildBearLabs/foundry.git -b feat/single_json_output
120121
fi
121122
shell: bash
122123

123124
- name: Set Foundry commit hash
125+
working-directory: .
124126
id: foundry_hash
125127
run: echo "hash=$(git -C foundry rev-parse HEAD)" >> $GITHUB_OUTPUT
126128

@@ -130,10 +132,11 @@ jobs:
130132
with:
131133
path: |
132134
foundry/target
133-
$HOME/.config/.foundry/bin
135+
~/.config/.foundry/bin
134136
key: ${{ runner.os }}-foundry-build-${{ steps.foundry_hash.outputs.hash }}
135137

136138
- name: Build Foundry from source or copy from target
139+
working-directory: .
137140
run: |
138141
FOUNDRY_BIN="$HOME/.config/.foundry/bin/forge"
139142
TARGET_FORGE="foundry/target/debug/forge"
@@ -160,7 +163,7 @@ jobs:
160163
with:
161164
path: |
162165
foundry/target
163-
$HOME/.config/.foundry/bin
166+
~/.config/.foundry/bin
164167
key: ${{ runner.os }}-foundry-build-${{ steps.foundry_hash.outputs.hash }}
165168

166169
- name: Show Forge version
@@ -182,7 +185,7 @@ jobs:
182185
- name: "Run the tests"
183186
working-directory: ${{ inputs.working-directory || 'flow' }}
184187
run: |
185-
MATCH_PATH="${{ inputs.match-path || 'tests/integration/**/*.sol' }}"
188+
MATCH_PATH="${{ inputs.match-path || 'tests/{integration,utils}/**/*.sol' }}"
186189
RETRY_ATTEMPTS="${{ inputs.retry-attempts || 1 }}"
187190
188191
for attempt in $(seq 1 $RETRY_ATTEMPTS); do
@@ -208,6 +211,7 @@ jobs:
208211
uses: BuildBearLabs/buildbear_x_action@feat/test-simulation-workflow
209212
with:
210213
buildbear-api-key: ${{ secrets.BUILDBEAR_API_KEY }}
214+
working-directory: ${{ inputs.working-directory || 'flow' }}
211215

212216
- name: "Add summary"
213217
run: | # shell

0 commit comments

Comments
 (0)