Refactor handling of environment variables (#2303)

* Refactor environment variables

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-09-16 11:03:29 +02:00 committed by GitHub
parent e412115a78
commit 39a4125cb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
85 changed files with 624 additions and 461 deletions

View file

@ -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

View file

@ -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/"