Revert "ci: Merge testing actions"

This reverts commit f2d165aa60.
This commit is contained in:
Tibo De Peuter 2025-04-02 20:03:08 +02:00
parent f2d165aa60
commit 80dc3acca7
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -1,56 +0,0 @@
name: Combined Testing
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
types: ["synchronize", "ready_for_review", "opened", "reopened"]
jobs:
backend-test:
name: Run backend unit tests
if: "! github.event.pull_request.draft"
runs-on: [self-hosted, Linux, X64]
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run test:unit -w backend
paths:
- 'backend/src/**.[jt]s'
- 'backend/tests/**.[jt]s'
- 'backend/vitest.config.ts'
frontend-test:
name: Run frontend unit tests
if: "! github.event.pull_request.draft"
runs-on: [self-hosted, Linux, X64]
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run test:unit -w frontend
paths:
- 'frontend/src/**.[jt]s'
- 'frontend/src/**.vue'
- 'frontend/src/**.css'
- 'frontend/tests/**.[jt]s'
- 'frontend/tests/**.vue'
- 'frontend/tests/**.css'
- 'frontend/vitest.config.ts'
- 'frontend/playwright.config.ts'