Skip to content

Commit

Permalink
Merge pull request #125 from boostcampwm-2022/feat/workflows
Browse files Browse the repository at this point in the history
[Feat] CI 단계에서 env 파일 생성
  • Loading branch information
iyu88 authored Feb 19, 2023
2 parents 17d3b84 + 9430dd1 commit c2be270
Show file tree
Hide file tree
Showing 2 changed files with 23 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
@@ -1,3 +1,4 @@

name: CLIENT CI

on:
Expand All @@ -21,9 +22,20 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: './frontend/package-lock.json'


- name: Setting .env.development
run: |
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
9 changes: 9 additions & 0 deletions .github/workflows/lighthouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ jobs:
cd ./frontend
npm ci
- name: Setting .env.production
run: |
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 c2be270

Please sign in to comment.