mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-26 10:54:49 +02:00
36 lines
657 B
YAML
36 lines
657 B
YAML
name: PR Checks
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
test-and-build:
|
|
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 type checking
|
|
run: npm run check
|
|
|
|
- name: Run linting
|
|
run: npm run lint
|
|
|
|
- name: Run unit tests
|
|
run: npm run test:unit -- --run
|
|
|
|
- name: Build application
|
|
run: npm run build
|