Skip to content

Commit b25be71

Browse files
committed
Testings
Signed-off-by: Christopher Obbard <[email protected]>
1 parent 93b6f9c commit b25be71

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/container.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,35 @@ jobs:
7979
8080
# TODO: actually do something useful here
8181
# git clone latest version && go test -v ./...
82+
- name: Checkout debos (for unit tests)
83+
uses: actions/checkout@v4
84+
with:
85+
repository: 'go-debos/debos'
86+
path: src/debos
87+
88+
- name: Checkout fakemachine (for unit tests)
89+
uses: actions/checkout@v4
90+
with:
91+
repository: 'go-debos/fakemachine'
92+
path: src/fakemachine
93+
8294
- name: Test Docker image
8395
run: |
84-
docker run --rm ${{ env.TEST_TAG }} go run github.com/go-debos/debos/cmd/debos@latest --help
96+
docker run --rm ${{ env.TEST_TAG }} -- /bin/bash -s <<EOF
97+
# Sanity check
98+
ls -la
99+
100+
# Fakemachine unit tests
101+
cd src/fakemachine
102+
go test -v ./...
103+
104+
# Debos unit tests
105+
cd src/debos
106+
go test -v ./...
107+
108+
# Sanity check exiting with error
109+
exit 1
110+
EOF
85111
86112
- name: Push Docker image
87113
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)