diff --git a/.github/workflows/frontend-review.yml b/.github/workflows/frontend-review.yml index 9f479e1b7a..c8ba609a72 100644 --- a/.github/workflows/frontend-review.yml +++ b/.github/workflows/frontend-review.yml @@ -1,11 +1,6 @@ -#github action to run unit tests for frontend with jest name: Frontend Unit Tests + on: - # push: - # branches: - # - main - # - dev - # - release/* pull_request: branches: - main @@ -14,9 +9,10 @@ on: paths: - 'client/**' - 'packages/**' + jobs: - tests_frontend: - name: Run frontend unit tests + tests_frontend_ubuntu: + name: Run frontend unit tests on Ubuntu timeout-minutes: 60 runs-on: ubuntu-latest steps: @@ -35,4 +31,26 @@ jobs: - name: Run unit tests run: npm run test:ci --verbose - working-directory: client \ No newline at end of file + working-directory: client + + tests_frontend_windows: + name: Run frontend unit tests on Windows + timeout-minutes: 60 + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js 20.x + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build Client + run: npm run frontend:ci + + - name: Run unit tests + run: npm run test:ci --verbose + working-directory: client diff --git a/client/src/components/Auth/LoginForm.tsx b/client/src/components/Auth/LoginForm.tsx index 9cff6c7360..c9ad52c673 100644 --- a/client/src/components/Auth/LoginForm.tsx +++ b/client/src/components/Auth/LoginForm.tsx @@ -49,7 +49,7 @@ const LoginForm: React.FC = ({ onSubmit }) => { /> @@ -74,7 +74,7 @@ const LoginForm: React.FC = ({ onSubmit }) => { /> diff --git a/client/src/components/Auth/Registration.tsx b/client/src/components/Auth/Registration.tsx index 15d2f64894..6bdd55d972 100644 --- a/client/src/components/Auth/Registration.tsx +++ b/client/src/components/Auth/Registration.tsx @@ -70,7 +70,7 @@ const Registration: React.FC = () => { > diff --git a/client/src/components/Auth/RequestPasswordReset.tsx b/client/src/components/Auth/RequestPasswordReset.tsx index 185b6789c9..671ca48133 100644 --- a/client/src/components/Auth/RequestPasswordReset.tsx +++ b/client/src/components/Auth/RequestPasswordReset.tsx @@ -108,7 +108,7 @@ function RequestPasswordReset() { > diff --git a/client/src/components/Auth/ResetPassword.tsx b/client/src/components/Auth/ResetPassword.tsx index 75390286cb..bb5f3f3a77 100644 --- a/client/src/components/Auth/ResetPassword.tsx +++ b/client/src/components/Auth/ResetPassword.tsx @@ -150,7 +150,7 @@ function ResetPassword() { > @@ -179,7 +179,7 @@ function ResetPassword() { >