Skip to content

Commit

Permalink
nit: allow arbitrary folder recursion for e2e tests. (cosmos#3714)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitrisJim authored Jun 1, 2023
1 parent 14c2698 commit b20799d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ jobs:
- name: Build e2e
run: |
cd e2e
test_dirs="$(ls -A tests)"
for td in $test_dirs
find ./tests -type d | while IFS= read -r dir
do
go test -c "./tests/${td}"
if ls "${dir}"/*.go >/dev/null 2>&1; then
GOARCH=arm64 go test -c "$dir" 2>/dev/null
fi
done
e2e:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ jobs:
- name: Build e2e
run: |
cd e2e
test_dirs="$(ls -A tests)"
for td in $test_dirs
find ./tests -type d | while IFS= read -r dir
do
GOARCH=${{ matrix.go-arch }} go test -c "./tests/${td}"
if ls "${dir}"/*.go >/dev/null 2>&1; then
GOARCH=arm64 go test -c "$dir" 2>/dev/null
fi
done
split-test-files:
Expand Down
File renamed without changes.

0 comments on commit b20799d

Please sign in to comment.