fix: ci checks #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs validation | |
on: pull_request | |
jobs: | |
prettier-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: the-guild-org/shared-config/setup@main | |
name: setup env | |
with: | |
packageManager: pnpm | |
workingDirectory: ./ | |
- name: Install Dependencies | |
run: pnpm i | |
- name: Run Prettier Check | |
run: pnpm format:check | |
link-check: | |
name: Broken link checker | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: the-guild-org/shared-config/setup@main | |
name: setup env | |
with: | |
packageManager: pnpm | |
workingDirectory: ./ | |
- name: Install Dependencies | |
run: pnpm i | |
- name: Build static site | |
run: pnpm build | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install lychee | |
run: cargo install lychee | |
- name: Check links | |
run: lychee --verbose --no-progress './out/**/*.html' | |
code-validate: | |
name: Code snippet and GraphQL validation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: the-guild-org/shared-config/setup@main | |
name: setup env | |
with: | |
packageManager: pnpm | |
workingDirectory: ./ | |
- name: Install Dependencies | |
run: pnpm i | |
- name: Run validation w/ annotations | |
run: pnpm lint:docs:ci | |
- name: Validate code snippets | |
run: pnpm validate:snippets |