Skip to content

ci: bump the github-actions group with 3 updates #515

ci: bump the github-actions group with 3 updates

ci: bump the github-actions group with 3 updates #515

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
paths-ignore:
- "docs/**"
- "wiki/**"
- "README.md"
- "CONTRIBUTING.md"
- "SECURITY.md"
- "roadmap.md"
pull_request:
branches: ["main"]
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
NODE_OPTIONS: "--no-deprecation"
jobs:
checks:
name: Format, Lint, and Test
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: Install system dependencies
# Full upgrade first, then install — Arch disallows partial upgrades.
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm --needed gtk4 libadwaita glib2 pkgconf base-devel libsecret git libheif cmake nasm
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Rust
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
with:
toolchain: stable
components: rustfmt, clippy
- name: Cache Rust artifacts
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --locked --all-targets --all-features -- -D warnings
- name: Run tests
run: cargo test --locked
cargo-audit:
name: Dependency Audit
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Rust
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
with:
toolchain: stable
- name: Install cargo-audit
uses: taiki-e/install-action@1ed6d7be6168f6c9046541087ff549b6bc581fdf # v2.87.2
with:
tool: cargo-audit
- name: Run cargo audit
run: cargo audit --deny warnings