Skip to content

Commit 4632bf0

Browse files
committed
Add explicit support to GitHub Actions scripts for ".test/config.sh" (and ".test/tests/xxx/")
1 parent b4880ac commit 4632bf0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/github-actions/generate.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,14 @@ for tag in $tags; do
9696
| join(" ")
9797
),
9898
history: ("docker history " + (.tags[0] | @sh)),
99-
test: ("~/oi/test/run.sh " + (.tags[0] | @sh)),
99+
test: (
100+
[
101+
"set -- " + (.tags[0] | @sh),
102+
# https://github.com/docker-library/bashbrew/issues/46#issuecomment-1152567694 (allow local test config / tests)
103+
"if [ -s ./.test/config.sh ]; then set -- --config ~/oi/test/config.sh --config ./.test/config.sh \"$@\"; fi",
104+
"~/oi/test/run.sh \"$@\""
105+
] | join("\n")
106+
),
100107
},
101108
}
102109
'

0 commit comments

Comments
 (0)