Add tests in workflow
Some checks failed
Run Tests / test-backend (push) Failing after 48s
Run Tests / test-frontend (push) Failing after 24s

This commit is contained in:
Ichitux
2026-04-01 01:24:17 +02:00
parent 0fe8ec9bc0
commit b5d1cb12bf

View 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