46 lines
903 B
YAML
46 lines
903 B
YAML
name: Run Tests on Branches
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- 'main'
|
|
|
|
jobs:
|
|
test-backend:
|
|
name: Backend Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '24'
|
|
cache: 'npm'
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
|
|
- name: Run Backend Tests
|
|
run: npm test --workspace=farma-clic-backend -- --ci
|
|
|
|
test-frontend:
|
|
name: Frontend Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '24'
|
|
cache: 'npm'
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
|
|
- name: Run Frontend Tests
|
|
run: npm test --workspace=farma-clic-frontend -- --run --reporter=basic
|