From 3e210f936b73fe392d983da3991ef4954460f867 Mon Sep 17 00:00:00 2001 From: AkashSDas Date: Sun, 11 Aug 2024 21:23:05 +0530 Subject: [PATCH] update frontend workflow --- .github/workflows/frontend.yml | 26 +++++++++++++++++--------- frontend/src/pages/404.tsx | 2 +- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 0a5703b..ab7f22f 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -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: @@ -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: @@ -56,11 +62,13 @@ 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 @@ -68,5 +76,5 @@ jobs: if: always() with: name: playwright-report - path: frontend/playwright-report/ + path: playwright-report/ retention-days: 30 diff --git a/frontend/src/pages/404.tsx b/frontend/src/pages/404.tsx index 7840bf7..4991964 100644 --- a/frontend/src/pages/404.tsx +++ b/frontend/src/pages/404.tsx @@ -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 ( <>