Skip to content

Commit 1c9f700

Browse files
committed
refactor: remove spa .env file creation from test action
1 parent 01b08a6 commit 1c9f700

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,6 @@ jobs:
3333
working-directory: packages/design-system
3434
run: npm run build
3535

36-
- name: Create and populate .env file
37-
env:
38-
DATAVERSE_BACKEND_URL: 'http://localhost:8000'
39-
OIDC_CLIENT_ID: 'test'
40-
OIDC_AUTHORIZATION_ENDPOINT: 'http://localhost:8000/realms/test/protocol/openid-connect/auth'
41-
OIDC_TOKEN_ENDPOINT: 'http://localhost:8000/realms/test/protocol/openid-connect/token'
42-
OIDC_LOGOUT_ENDPOINT: 'http://localhost:8000/realms/test/protocol/openid-connect/logout'
43-
OIDC_STORAGE_KEY_PREFIX: 'DV_'
44-
run: |
45-
touch .env
46-
echo VITE_DATAVERSE_BACKEND_URL="$DATAVERSE_BACKEND_URL" >> .env
47-
echo VITE_OIDC_CLIENT_ID="$OIDC_CLIENT_ID" >> .env
48-
echo VITE_OIDC_AUTHORIZATION_ENDPOINT="$OIDC_AUTHORIZATION_ENDPOINT" >> .env
49-
echo VITE_OIDC_TOKEN_ENDPOINT="$OIDC_TOKEN_ENDPOINT" >> .env
50-
echo VITE_OIDC_LOGOUT_ENDPOINT="$OIDC_LOGOUT_ENDPOINT" >> .env
51-
echo VITE_OIDC_STORAGE_KEY_PREFIX="$OIDC_STORAGE_KEY_PREFIX" >> .env
52-
shell: bash
53-
5436
- name: Create containerized development environment .env file
5537
working-directory: dev-env
5638
run: cp .env.example .env
@@ -113,24 +95,6 @@ jobs:
11395
sed -i -e 's/<YOUR_GITHUB_AUTH_TOKEN>/${{ secrets.GITHUB_TOKEN }}/g' .npmrc
11496
sed -i -e 's/<YOUR_NPM_AUTH_TOKEN>/${{ secrets.NPM_AUTH_TOKEN }}/g' .npmrc
11597
116-
- name: Create and populate .env file
117-
env:
118-
DATAVERSE_BACKEND_URL: 'http://localhost:8000'
119-
OIDC_CLIENT_ID: 'test'
120-
OIDC_AUTHORIZATION_ENDPOINT: 'http://localhost:8000/realms/test/protocol/openid-connect/auth'
121-
OIDC_TOKEN_ENDPOINT: 'http://localhost:8000/realms/test/protocol/openid-connect/token'
122-
OIDC_LOGOUT_ENDPOINT: 'http://localhost:8000/realms/test/protocol/openid-connect/logout'
123-
OIDC_STORAGE_KEY_PREFIX: 'DV_'
124-
run: |
125-
touch .env
126-
echo VITE_DATAVERSE_BACKEND_URL="$DATAVERSE_BACKEND_URL" >> .env
127-
echo VITE_OIDC_CLIENT_ID="$OIDC_CLIENT_ID" >> .env
128-
echo VITE_OIDC_AUTHORIZATION_ENDPOINT="$OIDC_AUTHORIZATION_ENDPOINT" >> .env
129-
echo VITE_OIDC_TOKEN_ENDPOINT="$OIDC_TOKEN_ENDPOINT" >> .env
130-
echo VITE_OIDC_LOGOUT_ENDPOINT="$OIDC_LOGOUT_ENDPOINT" >> .env
131-
echo VITE_OIDC_STORAGE_KEY_PREFIX="$OIDC_STORAGE_KEY_PREFIX" >> .env
132-
shell: bash
133-
13498
- name: Install Dependencies
13599
run: npm install
136100

0 commit comments

Comments
 (0)