File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed
Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments