mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-30 14:55:27 -04:00
feat(frontend): add build script
The build script prepares the package for a production build, builds the app, places every all needed files in a dist directory and cleans it. Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
7b3c217470
commit
4cb332622a
7 changed files with 50 additions and 26 deletions
7
.github/workflows/e2e-tests.yml
vendored
7
.github/workflows/e2e-tests.yml
vendored
|
@ -142,7 +142,7 @@ jobs:
|
|||
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
||||
|
||||
- name: Compress build
|
||||
run: tar --exclude='frontend/.next/cache' --exclude='frontend/.next/standalone' --zstd -cf frontend-e2e-build.tar.zst frontend/.next/
|
||||
run: tar --zstd -cf frontend-e2e-build.tar.zst frontend/dist/
|
||||
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
|
@ -186,9 +186,12 @@ jobs:
|
|||
|
||||
- name: Run server
|
||||
working-directory: frontend/
|
||||
run: (screen -dmS server -L yarn start:ci) && sleep 3 && (tail -f screenlog.0 &)
|
||||
run: (screen -dmS server -L yarn start) && sleep 3 && (tail -f screenlog.0 &)
|
||||
env:
|
||||
NODE_ENV: test
|
||||
HOSTNAME: "127.0.0.1"
|
||||
HD_BASE_URL: "http://127.0.0.1:3001/"
|
||||
PORT: 3001
|
||||
|
||||
- name: Wait for server
|
||||
run: "curl -L --max-time 120 http://127.0.0.1:3001/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue