Skip to content

Commit

Permalink
seperated github actions for frontend and backend
Browse files Browse the repository at this point in the history
  • Loading branch information
lourw committed Feb 25, 2023
1 parent d27c2f9 commit 9c3b67e
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 49 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci-backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Execute backend linters and tests
on: pull_request
paths:
- 'backend/**'

jobs:
backend-ci:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Dependencies
run: npm install

- name: Run Linters
run: npm run ci

- name: Run Tests
run: npm run test

27 changes: 27 additions & 0 deletions .github/workflows/ci-frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Execute frontend linters and tests
on: pull_request
paths:
- 'frontend/**'

frontend-ci:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend/VirtualCollection

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Dependencies
run: npm install

- name: Run Linters
run: npm run ci

- name: Run Tests
run: npm run test
49 changes: 0 additions & 49 deletions .github/workflows/ci.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions backend/tests/Backend.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ describe('Test the isalive path', () => {
done();
});
});
test('It should be a test', (done) => {
console.log('hi');
done();
});
});

0 comments on commit 9c3b67e

Please sign in to comment.