Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: 'cargo'
directory: '/'
schedule:
interval: 'daily'
time: '00:00'
labels: []
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
time: '00:00'
labels: []
- package-ecosystem: 'npm'
directory: '/site'
schedule:
interval: 'daily'
time: '00:00'
labels: []
14 changes: 14 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,23 @@ on:
push:
branches:
- main
paths-ignore:
- "**/*.md"
- ".agents/**"
- ".github/dependabot.yml"
- "assets/**"
- "automations/**"
- "openwiki/**"
pull_request:
branches:
- main
paths-ignore:
- "**/*.md"
- ".agents/**"
- ".github/dependabot.yml"
- "assets/**"
- "automations/**"
- "openwiki/**"
schedule:
- cron: "24 6 * * 1"

Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Deploy GitHub Pages

on:
push:
branches:
- main
paths:
- ".github/workflows/deploy-pages.yml"
- "site/**"
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: github-pages
cancel-in-progress: true

jobs:
build:
name: Build site artifact
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3

- name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm
cache-dependency-path: site/package-lock.json

- name: Configure GitHub Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0

- name: Install site dependencies
working-directory: site
run: npm ci

- name: Build site
working-directory: site
run: npm run build

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: site/dist

deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy artifact
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
137 changes: 137 additions & 0 deletions .github/workflows/language.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: Language Checks

permissions:
contents: read
pull-requests: read

on:
push:
branches:
- main
pull_request:
branches:
- main
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
rust-check:
name: Rust check
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3

- name: Set up Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1.16.1
with:
cache: true
rustflags: ''
components: rustfmt, clippy

- name: Install nightly rustfmt
run: rustup toolchain install nightly --component rustfmt

- name: Install cargo-make
uses: taiki-e/install-action@15449e3094499af05d8d964a1c884208e4b8b595 # v2.81.11
with:
tool: cargo-make

- name: Install nextest
uses: taiki-e/install-action@15449e3094499af05d8d964a1c884208e4b8b595 # v2.81.11
with:
tool: nextest

- name: Run Rust format check
run: cargo make fmt-rust-check

- name: Run Rust style check
uses: hack-ink/vibe-style@d9d913b1b1f45eaf89f2bc09c661c49084f2dfaf # v0.2.1
with:
language: rust
workspace: true
args: --all-features
version: v0.2.1

- name: Run Rust check
run: cargo make check-rust

- name: Run Rust clippy
run: cargo make lint-rust

- name: Run Rust tests
run: cargo make test-rust

docs-check:
name: Docs check
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3

- name: Set up Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1.16.1
with:
cache: true
rustflags: ''

- name: Run docs check
run: cargo run -p decodex --bin decodex -- docs check

site-check:
name: Site check
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3

- name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm
cache-dependency-path: site/package-lock.json

- name: Install cargo-make
uses: taiki-e/install-action@15449e3094499af05d8d964a1c884208e4b8b595 # v2.81.11
with:
tool: cargo-make

- name: Install site dependencies
working-directory: site
run: npm ci

- name: Build site
run: cargo make build-node

- name: Run site checks
run: cargo make check-node

toml-check:
name: TOML check
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@9f698171ed81b15d1823a05fc7211befd50c8ae0 # v6.0.3

- name: Set up Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1.16.1
with:
cache: true
rustflags: ''

- name: Install cargo-make
uses: taiki-e/install-action@15449e3094499af05d8d964a1c884208e4b8b595 # v2.81.11
with:
tool: cargo-make

- name: Install taplo
uses: taiki-e/install-action@15449e3094499af05d8d964a1c884208e4b8b595 # v2.81.11
with:
tool: taplo

- name: Run TOML format check
run: cargo make fmt-toml-check
Loading
Loading