Add tests in workflow
This commit is contained in:
31
.gitea/workflows/tests.yaml
Normal file
31
.gitea/workflows/tests.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Run Tests
|
||||
run-name: ${{ gitea.actor }} - ${{ gitea.event_name }} - ${{ gitea.ref }}
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
test-backend:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd backend
|
||||
npm ci
|
||||
- name: Run tests
|
||||
run: |
|
||||
cd backend
|
||||
npm run test
|
||||
test-frontend:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd frontend
|
||||
npm ci
|
||||
- name: Run tests
|
||||
run: |
|
||||
cd frontend
|
||||
npm run test
|
||||
Reference in New Issue
Block a user