From b5d1cb12bf70488c2b84c3faf201d758eb5ae105 Mon Sep 17 00:00:00 2001 From: Ichitux Date: Wed, 1 Apr 2026 01:24:17 +0200 Subject: [PATCH] Add tests in workflow --- .gitea/workflows/tests.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/tests.yaml diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml new file mode 100644 index 0000000..ea439eb --- /dev/null +++ b/.gitea/workflows/tests.yaml @@ -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