Skip to content

Commit

Permalink
Backport of 5283f33
Browse files Browse the repository at this point in the history
  • Loading branch information
remilapeyre committed Sep 1, 2023
1 parent eda7be1 commit 649a333
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,25 @@ jobs:
fi
- name: Build
run: find . -name go.mod -execdir go build ./... \;
run: |
set -e
exit_status=
for f in $(find . -name go.mod)
do
pushd $(dirname $f) > /dev/null
go build ./... || exit_status=$?
popd > /dev/null
done
exit $status
- name: Test
run: find . -name go.mod -execdir go test ./... \;
run: |
set -e
exit_status=
for f in $(find . -name go.mod)
do
pushd $(dirname $f) > /dev/null
go test -test.v ./... || exit_status=$?
popd > /dev/null
done
exit $exit_status

0 comments on commit 649a333

Please sign in to comment.