added build-and-test-frontend and deleted frontend tests
This commit is contained in:
1 parent
78247d5ba7
commit
015cad5d83
2 files changed
+19
-9
No files matched your search
@@ -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
|
||||
@@ -1,8 +0,0 @@
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import App from './App';
|
||||
|
||||
test('renders learn react link', () => {
|
||||
render(<App />);
|
||||
const linkElement = screen.getByText(/learn react/i);
|
||||
expect(linkElement).toBeInTheDocument();
|
||||
});
|
||||
Reference in new issue
Block a user