Skip to content

Commit

Permalink
workflows: Do not use ext/ director to run tests
Browse files Browse the repository at this point in the history
We need this directory for building the image, but not for running the
tests outside of it.
  • Loading branch information
jordigh authored and paulfitz committed Jul 1, 2024
1 parent 919cff0 commit 6e11e49
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docker_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6e11e49

Please sign in to comment.