Skip to content

Commit

Permalink
added working directory line for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
prishavall committed Jan 17, 2024
1 parent f724cf7 commit 8e174e6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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'
CI: 'true'
working-directory: ./frontend

0 comments on commit 8e174e6

Please sign in to comment.