mirror of
https://github.com/theoludwig/theoludwig.git
synced 2026-10-25 18:10:44 +01:00
47 lines
1.2 KiB
YAML
47 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@3d3c42e5aac5ba805825da76410c181273ba90b1" # v7.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: "pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413" # v6.1.0
|
|
|
|
- name: "Setup Node.js"
|
|
uses: "actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1" # v7.1.0
|
|
with:
|
|
node-version: "26.12.1"
|
|
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: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"
|