docs: safety of useSortedKeys #11490
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Jobs run on pull request | |
name: Pull request | |
on: | |
pull_request: | |
branches: | |
- main | |
- next | |
paths: # Only run when changes are made to rust code or root Cargo | |
- "crates/**" | |
- "fuzz/**" | |
- "xtask/**" | |
- "Cargo.toml" | |
- "Cargo.lock" | |
- "rust-toolchain.toml" | |
- "rustfmt.toml" | |
# Cancel jobs when the PR is updated | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
env: | |
RUST_LOG: info | |
RUST_BACKTRACE: 1 | |
RUSTUP_WINDOWS_PATH_ADD_BIN: 1 | |
jobs: | |
lint: | |
name: Lint project | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
# we have to also lint on windows because sometimes lints appear only on windows. | |
# this particularly occurs when code is conditionally compiled depending on the target os. | |
- os: depot-windows-2022 | |
- os: depot-ubuntu-24.04-arm-16 | |
steps: | |
- name: Checkout PR Branch | |
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
- name: Install toolchain | |
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2 | |
with: | |
components: clippy | |
cache-base: main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run clippy | |
run: | | |
cargo lint | |
cargo run -p rules_check | |
check-dependencies: | |
name: Check Dependencies | |
runs-on: depot-ubuntu-24.04-arm | |
steps: | |
- name: Checkout PR Branch | |
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
- name: Install toolchain | |
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2 | |
with: | |
channel: nightly | |
bins: cargo-udeps | |
cache: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Detect unused dependencies using udeps | |
run: cargo +nightly udeps --all-targets | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: depot-windows-2022-16 | |
- os: depot-ubuntu-24.04-arm-16 | |
steps: | |
- name: Checkout PR branch | |
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
- name: Install toolchain | |
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2 | |
with: | |
cache-base: main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run tests | |
run: cargo test --workspace --features=js_plugin | |
e2e-tests: | |
name: End-to-end tests | |
runs-on: depot-ubuntu-24.04-arm-16 | |
steps: | |
- name: Checkout PR branch | |
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
- name: Install toolchain | |
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2 | |
with: | |
cache-base: main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Biome debug binary | |
run: cargo build --bin biome | |
- name: Run tests | |
run: | | |
cd e2e-tests | |
sh test-all.sh | |
documentation: | |
name: Documentation | |
runs-on: depot-ubuntu-24.04-arm | |
steps: | |
- name: Checkout PR branch | |
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
- name: Install toolchain | |
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2 | |
with: | |
cache-base: main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run doc command | |
run: cargo documentation |