Skip to content

Persist upstream Radar review artifacts #508

Persist upstream Radar review artifacts

Persist upstream Radar review artifacts #508

Workflow file for this run

name: Language Checks
permissions:
contents: read
pull-requests: read
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
- '.gitignore'
- 'docs/**'
pull_request:
branches:
- main
paths-ignore:
- '**/*.md'
- '.gitignore'
- 'docs/**'
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- 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@e49978b799e49ff429d162b7a30601a569ab6538 # v2.81.1
with:
tool: cargo-make
- name: Install nextest
uses: taiki-e/install-action@e49978b799e49ff429d162b7a30601a569ab6538 # v2.81.1
with:
tool: nextest
- name: Run Rust format check
run: cargo make fmt-rust-check
- 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
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@e49978b799e49ff429d162b7a30601a569ab6538 # v2.81.1
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- 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@e49978b799e49ff429d162b7a30601a569ab6538 # v2.81.1
with:
tool: cargo-make
- name: Install taplo
uses: taiki-e/install-action@e49978b799e49ff429d162b7a30601a569ab6538 # v2.81.1
with:
tool: taplo
- name: Run TOML format check
run: cargo make fmt-toml-check