diff --git a/.github/workflows/CLIENT_CI.yml b/.github/workflows/CLIENT_CI.yml index 48a4fd9..0d82b11 100644 --- a/.github/workflows/CLIENT_CI.yml +++ b/.github/workflows/CLIENT_CI.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/lighthouse.yaml b/.github/workflows/lighthouse.yaml index c077b1d..338416f 100644 --- a/.github/workflows/lighthouse.yaml +++ b/.github/workflows/lighthouse.yaml @@ -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