2024-07-30 23:59:06 +02:00
|
|
|
name: "CI"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [develop]
|
|
|
|
pull_request:
|
|
|
|
branches: [develop, staging, main]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
timeout-minutes: 30
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
steps:
|
2024-10-12 23:51:58 +02:00
|
|
|
- uses: "actions/checkout@v4.2.1"
|
2024-07-30 23:59:06 +02:00
|
|
|
|
|
|
|
- uses: "pnpm/action-setup@v4.0.0"
|
|
|
|
|
|
|
|
- name: "Setup Node.js"
|
2024-10-12 23:51:58 +02:00
|
|
|
uses: "actions/setup-node@v4.0.4"
|
2024-07-30 23:59:06 +02:00
|
|
|
with:
|
|
|
|
node-version: "22.x"
|
|
|
|
cache: "pnpm"
|
|
|
|
|
|
|
|
- name: "Install dependencies"
|
|
|
|
run: "pnpm install --frozen-lockfile"
|
|
|
|
|
|
|
|
- name: "Install Playwright"
|
|
|
|
run: "pnpm exec playwright install --with-deps"
|
|
|
|
|
|
|
|
- run: "node --run lint:editorconfig"
|
|
|
|
- run: "node --run lint:markdown"
|
|
|
|
- run: "node --run lint:typescript"
|
2024-10-12 23:51:58 +02:00
|
|
|
- run: "node --run lint:eslint"
|
|
|
|
- run: "node --run lint:prettier"
|
2024-07-30 23:59:06 +02:00
|
|
|
- run: "node --run test"
|
|
|
|
- run: "node --run build"
|
|
|
|
|
|
|
|
commitlint:
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
steps:
|
2024-10-12 23:51:58 +02:00
|
|
|
- uses: "actions/checkout@v4.2.1"
|
2024-07-30 23:59:06 +02:00
|
|
|
|
2024-09-11 23:53:26 +02:00
|
|
|
- uses: "wagoid/commitlint-github-action@v6.1.2"
|