Skip to content

Commit b4cc436

Browse files
authored
Merge pull request #47 from infosiftr/local-tests
Add explicit support to GitHub Actions scripts for ".test/config.sh" …
2 parents b4880ac + 4632bf0 commit b4cc436

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)