Skip to content

Commit 8b644b7

Browse files
authored
[chore](docker): Run tests on docker with Madagascar 3.0
Run tests for programs that need Madagascar 3.0 installed on a docker container
1 parent e3c349a commit 8b644b7

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/blank.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,23 @@ jobs:
3535
- name: Test shellinclude from cmd
3636
run: cd test && for test in $(ls test_*.sh); do ./$test; done
3737

38-
- name: Test shellinclude from script
39-
run: echo "Build another test for shellinclude!!!"
38+
39+
- name: Set up Docker Buildx
40+
uses: docker/setup-buildx-action@v1
41+
42+
- name: Build and push
43+
uses: docker/build-push-action@v2
44+
with:
45+
context: .
46+
file: ./infra/Dockerfile
47+
tags: shellinclude
48+
outputs: type=docker,dest=/tmp/testimage.tar
49+
50+
- name: Load Docker image
51+
run: docker load --input /tmp/testimage.tar
52+
- name: Run unit tests on a docker with Madagascar 3.0
53+
run: docker run -t shellinclude bash -c "cd test/docker; cp ../../src/* /usr/bin; ./test_img.sh"
54+
4055
build:
4156
runs-on: ubuntu-latest
4257
needs: unit-tests

0 commit comments

Comments
 (0)