Skip to content

Commit

Permalink
update frontend workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashSDas committed Aug 11, 2024
1 parent 66f22c6 commit 3e210f9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8.14.3
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm install -g pnpm
cache: "pnpm"
- run: pnpm install
- run: pnpm build
- uses: actions/upload-artifact@v4
with:
name: build
path: frontend/dist
path: dist

test:
name: Test
defaults:
Expand All @@ -35,18 +38,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8.14.3
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm install -g pnpm
cache: "pnpm"
- run: pnpm install
- run: pnpm test
- run: pnpm test:cov
- uses: actions/upload-artifact@v4
with:
name: coverage-report
path: frontend/test
path: test

end-to-end-test:
name: End-to-End Test
defaults:
Expand All @@ -56,17 +62,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8.14.3
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm install -g pnpm
cache: "pnpm"
- run: pnpm install
- run: pnpm exec playwright install --with-deps
- run: pnpm exec playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: frontend/playwright-report/
path: playwright-report/
retention-days: 30
2 changes: 1 addition & 1 deletion frontend/src/pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Layout } from "@app/components/shared/layout/Layout";
import { fontStyles } from "@app/utils/fonts";
import { Text } from "@chakra-ui/react";
import Head from "next/head";
//

export default function NotFoundPage() {
return (
<>
Expand Down

0 comments on commit 3e210f9

Please sign in to comment.