mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-06 01:21:39 -04:00
Refactor handling of environment variables (#2303)
* Refactor environment variables Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
e412115a78
commit
39a4125cb0
85 changed files with 624 additions and 461 deletions
6
.github/workflows/deploy-pr.yml
vendored
6
.github/workflows/deploy-pr.yml
vendored
|
@ -35,13 +35,13 @@ jobs:
|
|||
node-version: 18
|
||||
|
||||
- name: Patch files
|
||||
run: bash netlify/patch-files.sh
|
||||
run: bash netlify/patch-files.sh "${{ github.event.number }}"
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --immutable
|
||||
|
||||
- name: Build netlify variant
|
||||
run: yarn build:netlify
|
||||
- name: Build mock variant
|
||||
run: yarn build:mock
|
||||
|
||||
- name: Remove Next.js cache to avoid it being deployed
|
||||
run: rm -r .next/cache
|
||||
|
|
2
.github/workflows/e2e.yml
vendored
2
.github/workflows/e2e.yml
vendored
|
@ -108,6 +108,8 @@ jobs:
|
|||
|
||||
- name: Run server
|
||||
run: yarn start:ci &
|
||||
env:
|
||||
NODE_ENV: test
|
||||
|
||||
- name: Wait for server
|
||||
run: "sleep 3 && curl --max-time 120 http://127.0.0.1:3001/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue