Skip to content

Commit c548eea

Browse files
committedNov 16, 2022
Ref #2 - add a compose test
1 parent ac1f4a8 commit c548eea

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: "3.3"
2+
3+
services:
4+
sut:
5+
image: alpine:3.16
6+
command: 'echo "image works";'

‎.github/workflows/check-action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ jobs:
1313
- name: try to pull an image
1414
uses: sudo-bot/action-docker-compose@latest
1515
with:
16-
cli-args: "pull alpine:3.16"
16+
cli-args: "-f .github/data/docker-compose-latest.test.yml pull"
17+
- name: try to pull an image
18+
uses: sudo-bot/action-docker-compose@latest
19+
with:
20+
cli-args: "-f .github/data/docker-compose-latest.test.yml up --exit-code-from=sut --abort-on-container-exit"

0 commit comments

Comments
 (0)