mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 21:02:45 -07:00
d470bd58f2
Co-authored-by: Valerio Ageno <valerio.ageno@qonto.com>
76 lines
1.7 KiB
YAML
76 lines
1.7 KiB
YAML
name: Documentation Website CI
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/**'
|
|
- 'apps/documentation/**'
|
|
pull_request:
|
|
paths:
|
|
- '.github/**'
|
|
- 'apps/documentation/**'
|
|
|
|
jobs:
|
|
build:
|
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
|
|
timeout-minutes: 15
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./apps/documentation
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Setup Node.js environment
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Setup rust
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
|
|
- name: Install tuono
|
|
run: cargo install tuono@0.10.4
|
|
|
|
- name: Install pnpm
|
|
run: npm i -g pnpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --ignore-workspace
|
|
|
|
- name: Build project
|
|
run: tuono build --static
|
|
|
|
fmt-lint-and-types:
|
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
defaults:
|
|
run:
|
|
working-directory: ./apps/documentation
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Install pnpm
|
|
run: npm i -g pnpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --ignore-workspace
|
|
|
|
- name: Check formatting
|
|
run: pnpm format:check
|
|
|
|
- name: Lint
|
|
run: pnpm lint
|
|
|
|
- name: Types
|
|
run: pnpm types
|