Skip to content

Commit b9ad2c4

Browse files
committed
- [#] generalize test of github cli
1 parent 1ccbea3 commit b9ad2c4

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/go-release-build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: build
22

3+
env:
4+
TEST_DIRS: test test2
5+
TEST_NAME: ./test-all.sh
6+
37
on:
48
push:
59
branches:
@@ -40,10 +44,9 @@ jobs:
4044
go get -v ./...
4145
go test -v ./...
4246
go build -v .
43-
#pwd
44-
#ls -Al test/* test2/*
45-
( cd test; ./test-all.sh; )
46-
( cd test2; ./test-all.sh; )
47+
for d in ${TEST_DIRS}; do
48+
echo Testing in folder \"$d\"; ( cd $d; $TEST_NAME; );
49+
done
4750
4851
-
4952
name: Run GoReleaser

0 commit comments

Comments
 (0)