Skip to content

chore: refresh content and add lint + link-check workflows #11

chore: refresh content and add lint + link-check workflows

chore: refresh content and add lint + link-check workflows #11

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
schedule:
# Mondays at 14:00 UTC, so broken links surface even between contributions.
- cron: "0 14 * * 1"
workflow_dispatch:
# Cancel in-progress runs for pull requests when developers push new changes.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: read
jobs:
format:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Install Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Validate formatting
run: bun fmt:ci
lint-awesome:
name: Lint awesome list
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Install Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: latest
- name: Run awesome-lint
run: bun x awesome-lint
lint-typos:
name: Check for typos
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Run typos
uses: crate-ci/typos@37bb98842b0d8c4ffebdb75301a13db0267cef89 # v1.47.2
with:
config: .github/typos.toml