From 9ecb9fb14dd4bb2afa6b34b06cff005eb1999ddb Mon Sep 17 00:00:00 2001 From: DasSkelett Date: Fri, 1 Oct 2021 00:19:31 +0200 Subject: [PATCH] Add inflator container smoke test to build.yml --- .github/workflows/build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5560158262..247fa0efa3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,7 +51,17 @@ jobs: - name: Build ckan.exe and netkan.exe run: ./build --configuration=${{ matrix.configuration}} - name: Run tests - run: xvfb-run ./build test+only --configuration=${{ matrix.configuration }} --where="Category!=FlakyNetwork" + run: | + xvfb-run ./build test+only --configuration=${{ matrix.configuration }} --where="Category!=FlakyNetwork" + # Smoke test for netkan.exe, test for SpaceDock reachability + cd _build + curl -fsSL https://get.docker.com -o get-docker.sh + sh get-docker.sh + docker build --tag inflator --file ../Dockerfile.netkan . + docker run --rm --name inflator --entrypoint /bin/bash inflator -c " + curl -O https://raw.githubusercontent.com/KSP-CKAN/NetKAN/master/NetKAN/ZeroMiniAVC.netkan && \ + mono netkan.exe ZeroMiniAVC.netkan + " - name: Upload ckan.exe artifact uses: actions/upload-artifact@v2