diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index d0b4c8b5..65e14b90 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -13,18 +13,22 @@ jobs: - name: Install pnpm run: npm install -g pnpm + working-directory: ./frontend - name: Install run: pnpm install --frozen-lockfile id: install + working-directory: ./frontend - name: Run prettier run: yarn run format:check + working-directory: ./frontend - name: Run ESLint run: yarn run lint # Always run the linter, even if prettier failed if: ${{ steps.install.outcome == 'success' }} + working-directory: ./frontend build: name: Build & Stage @@ -35,9 +39,11 @@ jobs: - name: Install pnpm run: npm install -g pnpm + working-directory: ./frontend - name: Install run: pnpm install --frozen-lockfile + working-directory: ./frontend - name: Build run: yarn build @@ -52,6 +58,7 @@ jobs: REACT_APP_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.REACT_APP_FIREBASE_MESSAGING_SENDER_ID_DEV }} REACT_APP_FIREBASE_APP_ID: ${{ secrets.REACT_APP_FIREBASE_APP_ID_DEV }} REACT_APP_FIREBASE_MEASUREMENT_ID: ${{ secrets.REACT_APP_FIREBASE_MEASUREMENT_ID_DEV }} + working-directory: ./frontend - name: Stage uses: rossjrw/pr-preview-action@v1 @@ -68,11 +75,14 @@ jobs: - name: Install pnpm run: npm install -g pnpm + working-directory: ./frontend - name: Install run: pnpm install --frozen-lockfile + working-directory: ./frontend - name: Test run: pnpm run test --coverage env: - CI: 'true' \ No newline at end of file + CI: 'true' + working-directory: ./frontend \ No newline at end of file