File tree Expand file tree Collapse file tree 3 files changed +10
-14
lines changed
Expand file tree Collapse file tree 3 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -421,20 +421,12 @@ jobs:
421421 runs-on : ubuntu-latest
422422 name : Docker ${{ matrix.image }}
423423 steps :
424- - name : Set up QEMU
425- uses : docker/setup-qemu-action@v2
426- - name : Set up Docker Buildx
427- uses : docker/setup-buildx-action@v2
428- - name : Login to Docker Hub
429- uses : docker/login-action@v2
430- with :
431- username : ${{ secrets.DOCKERHUB_USERNAME }}
432- password : ${{ secrets.DOCKERHUB_TOKEN }}
433- env :
434- TOKEN : ${{ secrets.DOCKERHUB_TOKEN }}
435- if : ${{ env.TOKEN != '' }}
436424 - name : Build
437425 uses : docker/build-push-action@v3
438426 with :
439427 file : docker/Dockerfile.${{ matrix.image }}
440- tags : cpputest/${{ matrix.image }}
428+ tags : cpputest/${{ matrix.image }}:latest
429+ push : false
430+ - name : Test
431+ run : |
432+ docker run --rm cpputest/${{ matrix.image }}:latest
Original file line number Diff line number Diff line change @@ -4,4 +4,6 @@ RUN apt-get -qq update && apt-get -qq install -y --no-install-recommends dosbox
44
55WORKDIR /cpputest_build
66
7+ COPY ../ /cpputest
8+
79CMD ["/cpputest/scripts/dos_build_test.sh"]
Original file line number Diff line number Diff line change @@ -5,4 +5,6 @@ RUN apt-get update && \
55
66WORKDIR /cpputest_build
77
8- CMD autoreconf -i ../cpputest && ../cpputest/configure && make tdd
8+ COPY ../ /cpputest
9+
10+ CMD ["bash", "-c", "autoreconf -i /cpputest && /cpputest/configure && make tdd"]
You can’t perform that action at this time.
0 commit comments