From 6e11e497bc80591739ed49d2ccc9286bcc2652f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jordi=20Guti=C3=A9rrez=20Hermoso?= Date: Fri, 28 Jun 2024 20:15:59 -0400 Subject: [PATCH] workflows: Do not use `ext/` director to run tests We need this directory for building the image, but not for running the tests outside of it. --- .github/workflows/docker_latest.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker_latest.yml b/.github/workflows/docker_latest.yml index 4a6f2c1c..01abfd84 100644 --- a/.github/workflows/docker_latest.yml +++ b/.github/workflows/docker_latest.yml @@ -82,14 +82,16 @@ jobs: - name: Build Node.js code run: | - pushd ext && \ - { if [ -e package.json ] ; then yarn install --frozen-lockfile --modules-folder=../../node_modules; fi } && \ - popd + rm -rf ext yarn run build:prod - name: Run tests run: TEST_IMAGE=${{ github.repository_owner }}/${{ matrix.image.name }}:experimental VERBOSE=1 DEBUG=1 MOCHA_WEBDRIVER_HEADLESS=1 yarn run test:docker + - name: Restore the ext/ directory + if: matrix.image.name != 'grist-oss' + run: buildtools/checkout-ext-directory.sh ${{ matrix.image.repo }} + - name: Log in to Docker Hub uses: docker/login-action@v1 with: