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
57 changes: 29 additions & 28 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ permissions:
contents: read

name: Build
'on':
"on":
Copy link

Copilot AI Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workflow trigger key is changed to "on" (quoted) here, but other workflows in this repo still use the unquoted on: form (e.g., .github/workflows/docs.yml, release.yml). Consider keeping the style consistent across workflows (either update the others in the same PR, or revert to on: here).

Suggested change
"on":
on:

Copilot uses AI. Check for mistakes.
push:
branches:
- main
Expand All @@ -11,17 +11,32 @@ name: Build
- main

concurrency:
group: '${{ github.workflow }}-${{ github.ref }}'
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always

jobs:

lint:
runs-on: ubuntu-latest
name: Lint
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt

- name: Check formatting
run: cargo fmt --all -- --check

test:
runs-on: '${{ matrix.os }}'
name: '${{ matrix.os }} / stable'
needs: lint
runs-on: "${{ matrix.os }}"
name: "${{ matrix.os }} / stable"
strategy:
fail-fast: false
matrix:
Expand All @@ -32,41 +47,27 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy


- name: Setup cache
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Check formatting
run: cargo fmt --all -- --check

uses: Swatinem/rust-cache@v2

- name: Build (no features)
run: cargo build --verbose --no-default-features

- name: Build (default features)
run: cargo build --verbose

- name: Build (all features)
run: cargo build --verbose --all-features

- name: Run tests (no features)
run: cargo test --verbose --no-default-features

- name: Run tests (default features)
run: cargo test --verbose

- name: Run tests (all features)
run: cargo test --verbose --all-features

- name: Run doc tests
run: cargo test --doc --all-features
18 changes: 6 additions & 12 deletions .github/workflows/security_audit.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Security Audit

'on':
"on":
Copy link

Copilot AI Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workflow trigger key is quoted as "on" here, while other workflows in the repo use on: unquoted. For consistency/maintainability, consider standardizing on one style across all workflow files.

Suggested change
"on":
on:

Copilot uses AI. Check for mistakes.
workflow_dispatch:
schedule:
- cron: "0 6 1,15 * *"

permissions:
contents: read
Expand All @@ -12,15 +14,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup cache
uses: actions/cache@v5
- name: Security audit
uses: rustsec/audit-check@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Run security audit
run: cargo audit
token: ${{ secrets.GITHUB_TOKEN }}
Loading