Skip to content

chore: Strip local features #3176

chore: Strip local features

chore: Strip local features #3176

Workflow file for this run

name: check
permissions:
contents: read
# This configuration allows maintainers of this repo to create a branch and pull request based on
# the new branch. Restricting the push trigger to the main branch ensures that the PR only gets
# built once.
on:
push:
branches:
- main
- latest
pull_request:
# If new code is pushed to a PR branch, then cancel in progress workflows for that PR.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash -xe {0}
jobs:
fmt:
name: cargo fmt
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- uses: nixbuild/nix-quick-install-action@9f63be77f412a248c9d9a65a4c82cf066cdf8f0c
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Populate the nix store
run: nix develop --command echo
- name: cargo fmt
run: nix develop --command cargo fmt --check
check-dev-deps:
name: Check dev-deps.txt
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- uses: nixbuild/nix-quick-install-action@9f63be77f412a248c9d9a65a4c82cf066cdf8f0c
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Populate the nix store
run: nix develop --command echo
- run: nix develop --command ./scripts/dev-deps.sh
- run: |
if git diff --quiet; then
echo "No changes"
else
echo "::error::Changes in dev-deps.txt detected"
git diff
exit 1
fi
check-js-runtime-freshness:
name: JS runtime pins up to date
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
fetch-depth: 0
- name: Check JS runtime version pins are newer than their sources
run: ./scripts/check-js-runtime-freshness.sh
deny:
name: cargo deny
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- uses: nixbuild/nix-quick-install-action@9f63be77f412a248c9d9a65a4c82cf066cdf8f0c
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Populate the nix store
run: nix develop --command echo
- name: cargo deny
run: nix develop --command cargo deny --config .config/deny.toml check
clippy:
name: clippy
runs-on: ubuntu-24.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- uses: nixbuild/nix-quick-install-action@9f63be77f412a248c9d9a65a4c82cf066cdf8f0c
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Populate the nix store
run: nix develop --command echo
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
cache-on-failure: true
- name: cargo clippy
run: nix develop --command cargo clippy --workspace --all-targets -- -D warnings