mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
workflow: conditionally restore ext/ directory
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.
This commit is contained in:
parent
39eb042ff1
commit
78f5bd9f5d
14
.github/workflows/docker_latest.yml
vendored
14
.github/workflows/docker_latest.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user