mirror of
https://github.com/theoludwig/theoludwig.git
synced 2026-05-06 13:48:12 +02:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: "CI"
|
|
|
|
on:
|
|
push:
|
|
branches: [develop]
|
|
pull_request:
|
|
branches: [develop, staging, main]
|
|
|
|
jobs:
|
|
ci:
|
|
timeout-minutes: 30
|
|
runs-on: "ubuntu-latest"
|
|
env:
|
|
CI: "1"
|
|
TZ: "Europe/Paris"
|
|
DO_NOT_TRACK: "1"
|
|
TURBO_TELEMETRY_DISABLED: "1"
|
|
NEXT_TELEMETRY_DISABLED: "1"
|
|
STORYBOOK_DISABLE_TELEMETRY: "1"
|
|
steps:
|
|
- uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
|
|
|
|
- uses: "pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d" # v6.0.5
|
|
|
|
- name: "Setup Node.js"
|
|
uses: "actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e" # v6.4.0
|
|
with:
|
|
node-version: "24.15.0"
|
|
cache: "pnpm"
|
|
- run: "node --version"
|
|
|
|
- name: "Install dependencies"
|
|
run: "pnpm clean-install"
|
|
|
|
- name: "Install Playwright"
|
|
run: "pnpm exec playwright install --with-deps"
|
|
|
|
- run: "node --run lint:editorconfig"
|
|
- run: "node --run lint:markdown"
|
|
- run: "node --run lint:turbo"
|
|
# - run: "node --run lint:typescript" # already covered by oxlint
|
|
- run: "node --run lint:oxlint"
|
|
- run: "node --run lint:oxfmt"
|
|
- run: "node --run test"
|
|
- run: "node --run build"
|