Skip to content

Commit

Permalink
Merge pull request #127 from boostcampwm-2022/feat/workflows
Browse files Browse the repository at this point in the history
[Fix] env 파일 경로 수정
  • Loading branch information
iyu88 authored Feb 19, 2023
2 parents b61aa95 + 35602d9 commit da0162f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/CLIENT_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,21 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: './frontend/package-lock.json'


- name: Setting .env.development
run: |
cd ./frontend
echo "REACT_APP_GITHUB_OAUTH=${{ secrets.REACT_APP_GITHUB_OAUTH_DEV }}" >> .env.development
echo "REACT_APP_NODE_ENV=${{ secrets.REACT_APP_NODE_ENV_DEV }}" >> .env.development
echo "REACT_APP_API_URL=${{ secrets.REACT_APP_API_URL_DEV }}" >> .env.development
echo "REACT_APP_SOCKET_URL=${{ secrets.REACT_APP_SOCKET_URL_DEV }}" >> .env.development
echo "BROWSER=${{ secrets.BROWSER }}" >> .env.development
cat .env.development
- name: Install and Test
run: |
cd ./frontend
npm ci
npm test
npm run test
env:
CI: false
10 changes: 10 additions & 0 deletions .github/workflows/lighthouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ jobs:
cd ./frontend
npm ci
- name: Setting .env.production
run: |
cd ./frontend
echo "REACT_APP_GITHUB_OAUTH=${{ secrets.REACT_APP_GITHUB_OAUTH_PROD }}" >> .env.production
echo "REACT_APP_NODE_ENV=${{ secrets.REACT_APP_NODE_ENV_PROD }}" >> .env.production
echo "REACT_APP_API_URL=${{ secrets.REACT_APP_API_URL_PROD }}" >> .env.production
echo "REACT_APP_SOCKET_URL=${{ secrets.REACT_APP_SOCKET_URL_PROD }}" >> .env.production
echo "BROWSER=${{ secrets.BROWSER }}" >> .env.production
cat .env.production
- name: Build
run: |
cd ./frontend
Expand Down

0 comments on commit da0162f

Please sign in to comment.