From 015cad5d8366c73e868848f481b52375534f1459 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Fri, 8 Aug 2025 21:47:45 +0700 Subject: [PATCH] added build-and-test-frontend and deleted frontend tests --- .gitea/workflows/build-and-test.yaml | 20 +++++++++++++++++++- frontend/src/App.test.js | 8 -------- 2 files changed, 19 insertions(+), 9 deletions(-) delete mode 100644 frontend/src/App.test.js diff --git a/.gitea/workflows/build-and-test.yaml b/.gitea/workflows/build-and-test.yaml index b436833..11a8a7c 100644 --- a/.gitea/workflows/build-and-test.yaml +++ b/.gitea/workflows/build-and-test.yaml @@ -11,7 +11,7 @@ on: - develop jobs: - build-and-test: + build-and-test-backend: runs-on: ubuntu-latest steps: - name: Checkout @@ -30,3 +30,21 @@ jobs: - name: test run: cd backend && go test -v ./... + + build-and-test-frontend: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-verion: "24.1.0" + cache: "npm" + + - name: Install dependencies + run: cd frontend && npm ci + + - name: Build + run: cd frontend && npm run build diff --git a/frontend/src/App.test.js b/frontend/src/App.test.js deleted file mode 100644 index 1f03afe..0000000 --- a/frontend/src/App.test.js +++ /dev/null @@ -1,8 +0,0 @@ -import { render, screen } from '@testing-library/react'; -import App from './App'; - -test('renders learn react link', () => { - render(); - const linkElement = screen.getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); -});