Files
Sable/.github/workflows/rust-quality.yml
dependabot[bot] 9d630bef2d chore: bump the github-actions group with 4 updates
Bumps the github-actions group with 4 updates: [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/analyze](https://github.com/github/codeql-action), [jdx/mise-action](https://github.com/jdx/mise-action) and [gradle/actions/setup-gradle](https://github.com/gradle/actions).


Updates `github/codeql-action/init` from 4.37.4 to 4.37.5
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/f205ea1c3313d32999d8d6a48b4f6530d4437b38...d1ba80a13dd99fba24a470575428917156a28b43)

Updates `github/codeql-action/analyze` from 4.37.4 to 4.37.5
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/f205ea1c3313d32999d8d6a48b4f6530d4437b38...d1ba80a13dd99fba24a470575428917156a28b43)

Updates `jdx/mise-action` from 4.2.3 to 4.2.4
- [Release notes](https://github.com/jdx/mise-action/releases)
- [Changelog](https://github.com/jdx/mise-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jdx/mise-action/compare/9e7f7633ff6f6d6048a9418a68d48f288f50eb14...7e36c90d9ab29c415a2384db3006f3ec8a8cc654)

Updates `gradle/actions/setup-gradle` from 6.2.0 to 6.3.0
- [Release notes](https://github.com/gradle/actions/releases)
- [Commits](https://github.com/gradle/actions/compare/3f131e8634966bd73d06cc69884922b02e6faf92...9c971963bec38e04b3d30dcc455b5382be2fdbfb)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.37.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.37.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: jdx/mise-action
  dependency-version: 4.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: gradle/actions/setup-gradle
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-08-10 01:30:22 +00:00

88 lines
2.3 KiB
YAML

name: Rust quality checks
on:
pull_request:
paths:
- 'src-tauri/**'
- '.github/workflows/rust-quality.yml'
push:
branches: [dev]
paths:
- 'src-tauri/**'
- '.github/workflows/rust-quality.yml'
merge_group:
permissions: {}
jobs:
format:
name: Rust format
runs-on: ubuntu-latest
permissions:
contents: read
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup mise
uses: jdx/mise-action@7e36c90d9ab29c415a2384db3006f3ec8a8cc654 # v4.2.4
with:
cache: true
- name: Check Rust formatting
run: cargo fmt --manifest-path src-tauri/Cargo.toml -- --check
checks:
name: Rust check, test, and Clippy
runs-on: ubuntu-22.04
permissions:
contents: read
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install Tauri build dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
libayatana-appindicator3-dev \
libgtk-3-dev \
librsvg2-dev \
libsoup-3.0-dev \
libssl-dev \
libwebkit2gtk-4.1-dev \
libxdo-dev \
pkg-config
- name: Setup mise
uses: jdx/mise-action@7e36c90d9ab29c415a2384db3006f3ec8a8cc654 # v4.2.4
with:
cache: true
- name: Cache Rust build
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
workspaces: src-tauri
# Restore only on PRs; the repo sits at the 10 GiB cache cap.
save-if: ${{ github.ref == 'refs/heads/dev' }}
- name: Check native app
run: cargo check --locked --manifest-path src-tauri/Cargo.toml
- name: Run Rust tests
run: cargo test --locked --manifest-path src-tauri/Cargo.toml
- name: Run Clippy
run: cargo clippy --locked --manifest-path src-tauri/Cargo.toml --all-targets -- -D warnings