Skip to content

Commit

Permalink
workflow: conditionally restore ext/ directory
Browse files Browse the repository at this point in the history
Now that we *have* to have something in the ext directory, we need to
either restore the external ext or the default OSS ext depending on
which build we are doing.
  • Loading branch information
jordigh committed Jul 10, 2024
1 parent 39eb042 commit 78f5bd9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/docker_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,21 @@ jobs:
if: ${{ !inputs.disable_tests }}
run: yarn install

- name: Disable the ext/ directory
if: ${{ !inputs.disable_tests }}
run: mv ext/ ext-disabled/

- name: Build Node.js code
if: ${{ !inputs.disable_tests }}
run: |
rm -rf ext
yarn run build:prod
run: yarn run build:prod

- name: Run tests
if: ${{ !inputs.disable_tests }}
run: TEST_IMAGE=${{ env.DOCKER_HUB_OWNER }}/${{ matrix.image.name }}:${{ env.TAG }} VERBOSE=1 DEBUG=1 MOCHA_WEBDRIVER_HEADLESS=1 yarn run test:docker

- name: Restore the ext/ directory
if: ${{ matrix.image.name != 'grist-oss' && !inputs.disable_tests }}
run: buildtools/checkout-ext-directory.sh ${{ matrix.image.repo }}
- name: Re-enable the ext/ directory
if: ${{ !inputs.disable_tests }}
run: mv ext-disabled/ ext/

- name: Log in to Docker Hub
uses: docker/login-action@v1
Expand Down

0 comments on commit 78f5bd9

Please sign in to comment.