parent
f2d165aa60
commit
80dc3acca7
1 changed files with 0 additions and 56 deletions
56
.github/workflows/testing.yml
vendored
56
.github/workflows/testing.yml
vendored
|
@ -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'
|
Loading…
Add table
Add a link
Reference in a new issue