forked from MapComplete/MapComplete
Chore(runner): split build step into multiple steps
This commit is contained in:
parent
057a32aedd
commit
cfccec2a88
1 changed files with 10 additions and 3 deletions
13
.github/workflows/deploy_hosted.yml
vendored
13
.github/workflows/deploy_hosted.yml
vendored
|
@ -37,10 +37,13 @@ jobs:
|
||||||
run: npm run prepare-deploy
|
run: npm run prepare-deploy
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: run tests
|
|
||||||
|
- name: Prepare build
|
||||||
|
run: npm run generate:service-worker && ./scripts/prepare-build.sh
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
pwd
|
|
||||||
ls
|
|
||||||
# This is the same as `npm run test`, but `vitest` doesn't want to run within npm :shrug:
|
# This is the same as `npm run test`, but `vitest` doesn't want to run within npm :shrug:
|
||||||
export NODE_OPTIONS="--max-old-space-size=8192"
|
export NODE_OPTIONS="--max-old-space-size=8192"
|
||||||
npm run clean:tests
|
npm run clean:tests
|
||||||
|
@ -55,6 +58,10 @@ jobs:
|
||||||
npm run clean:tests
|
npm run clean:tests
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
||||||
|
- name: Build files
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
- name: Zipping dist file
|
- name: Zipping dist file
|
||||||
run: |
|
run: |
|
||||||
mv dist ${{ github.ref_name }}
|
mv dist ${{ github.ref_name }}
|
||||||
|
|
Loading…
Reference in a new issue