Skip to content
Merged
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
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ updates:
interval: 'daily'
time: '00:00'
labels: []
- package-ecosystem: 'npm'
directory: '/site'
schedule:
interval: 'daily'
time: '00:00'
labels: []
79 changes: 0 additions & 79 deletions .github/rulesets/any.json

This file was deleted.

101 changes: 0 additions & 101 deletions .github/rulesets/default.json

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v6
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@v5
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0

- name: Install site dependencies
working-directory: site
Expand All @@ -42,7 +42,7 @@ jobs:
run: npm run build

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

Expand All @@ -56,4 +56,4 @@ jobs:
steps:
- name: Deploy artifact
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
89 changes: 52 additions & 37 deletions .github/workflows/language.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,21 @@ on:
- '.gitignore'
- 'docs/**'
merge_group:
paths-ignore:
- '**/*.md'
- '.gitignore'
- 'docs/**'

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

jobs:
rust:
name: Rust checks
rust-check:
name: Rust check
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1.16.1
with:
cache: true
rustflags: ''
Expand All @@ -48,61 +44,80 @@ jobs:
run: rustup toolchain install nightly --component rustfmt

- name: Install cargo-make
uses: taiki-e/install-action@v2
uses: taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
with:
tool: cargo-make

- name: Install vibe-style (latest release)
run: |
set -euo pipefail
VERSION="$(curl -fsSL https://api.github.com/repos/hack-ink/vibe-style/releases/latest | grep -oE '"tag_name": "v[^"]+"' | cut -d'"' -f4)"
TARGET="x86_64-unknown-linux-gnu"
ASSET="vibe-style-${TARGET}-${VERSION}.tgz"

curl -fsSLO "https://github.com/hack-ink/vibe-style/releases/download/${VERSION}/${ASSET}"
tar -xzf "${ASSET}"

mkdir -p "$HOME/.cargo/bin"
install -m 0755 "vibe-style-${TARGET}-${VERSION}/vstyle" "$HOME/.cargo/bin/vstyle"
install -m 0755 "vibe-style-${TARGET}-${VERSION}/cargo-vstyle" "$HOME/.cargo/bin/cargo-vstyle"
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"

- name: Install nextest
uses: taiki-e/install-action@v2
uses: taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
with:
tool: nextest

- name: Run lint
run: cargo make lint

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

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

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

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

toml:
name: TOML checks
site-check:
name: Site check
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- 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@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
with:
tool: cargo-make

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

- name: Run site and content checks
run: cargo make check-site

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

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

- name: Install cargo-make
uses: taiki-e/install-action@v2
uses: taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
with:
tool: cargo-make

- name: Install taplo
uses: taiki-e/install-action@v2
uses: taiki-e/install-action@3fa6878dc4ae603f73960271565a082bf196ab96 # v2.77.2
with:
tool: taplo

- name: Run TOML format checks
- name: Run TOML format check
run: cargo make fmt-toml-check
4 changes: 2 additions & 2 deletions .github/workflows/refresh-github-signals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
GH_API_TOKEN: ${{ secrets.GITHUB_PAT_Y }}
steps:
- name: Fetch latest code
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: main
fetch-depth: 0

- name: Set up Node
uses: actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm
Expand Down
Loading