Skip to content

Commit da0162f

Browse files
authored
Merge pull request #127 from boostcampwm-2022/feat/workflows
[Fix] env 파일 경로 수정
2 parents b61aa95 + 35602d9 commit da0162f

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/CLIENT_CI.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,21 @@ jobs:
2121
node-version: ${{ matrix.node-version }}
2222
cache: 'npm'
2323
cache-dependency-path: './frontend/package-lock.json'
24-
24+
25+
- name: Setting .env.development
26+
run: |
27+
cd ./frontend
28+
echo "REACT_APP_GITHUB_OAUTH=${{ secrets.REACT_APP_GITHUB_OAUTH_DEV }}" >> .env.development
29+
echo "REACT_APP_NODE_ENV=${{ secrets.REACT_APP_NODE_ENV_DEV }}" >> .env.development
30+
echo "REACT_APP_API_URL=${{ secrets.REACT_APP_API_URL_DEV }}" >> .env.development
31+
echo "REACT_APP_SOCKET_URL=${{ secrets.REACT_APP_SOCKET_URL_DEV }}" >> .env.development
32+
echo "BROWSER=${{ secrets.BROWSER }}" >> .env.development
33+
cat .env.development
34+
2535
- name: Install and Test
2636
run: |
2737
cd ./frontend
2838
npm ci
29-
npm test
39+
npm run test
40+
env:
41+
CI: false

.github/workflows/lighthouse.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ jobs:
2525
cd ./frontend
2626
npm ci
2727
28+
- name: Setting .env.production
29+
run: |
30+
cd ./frontend
31+
echo "REACT_APP_GITHUB_OAUTH=${{ secrets.REACT_APP_GITHUB_OAUTH_PROD }}" >> .env.production
32+
echo "REACT_APP_NODE_ENV=${{ secrets.REACT_APP_NODE_ENV_PROD }}" >> .env.production
33+
echo "REACT_APP_API_URL=${{ secrets.REACT_APP_API_URL_PROD }}" >> .env.production
34+
echo "REACT_APP_SOCKET_URL=${{ secrets.REACT_APP_SOCKET_URL_PROD }}" >> .env.production
35+
echo "BROWSER=${{ secrets.BROWSER }}" >> .env.production
36+
cat .env.production
37+
2838
- name: Build
2939
run: |
3040
cd ./frontend

0 commit comments

Comments
 (0)