From c511fb0e8bab4ef1c2c60c372172fe4a2437ce3b Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Tue, 20 Feb 2024 02:52:20 +0100 Subject: [PATCH] =?UTF-8?q?fix=20(build):=20Add=20(initial)=20missing=20CI?= =?UTF-8?q?=20test=20coverage=20for=20DevEnv=20=F0=9F=AB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 7 ++++++- devenv.bash | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 332b107be..25bef16be 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -121,7 +121,12 @@ jobs: shell: bash run: asdf reshim - - run: ./tools/test-ci/test.bash + - name: Run CI Tests + run: ./tools/test-ci/test.bash + + # TODO https://github.com/enola-dev/enola/issues/458 turn this "upside down"... + - name: Test Development Environment (DevEnv) + run: ./devenv.bash # Build docs/ into site/ (not just on main branch but also for pull requests, as test) - name: Build Docs Site diff --git a/devenv.bash b/devenv.bash index ccfa4f216..81efa34ab 100755 --- a/devenv.bash +++ b/devenv.bash @@ -21,4 +21,8 @@ set -euo pipefail docker build -t enola.dev-devenv --rm -f Dockerfile-DevEnv . -docker run -v .:/workspace/:Z -it --rm enola.dev-devenv +set +u +if [ -z "$CI" ]; then + docker run -v "$PWD":/workspace/:Z -it --rm enola.dev-devenv +fi +set -u