Skip to content

Bump the backend-dependencies group across 1 directory with 2 updates #54

Bump the backend-dependencies group across 1 directory with 2 updates

Bump the backend-dependencies group across 1 directory with 2 updates #54

Workflow file for this run

on:
push:
branches:
- main
pull_request: { }
merge_group:
types:
- checks_requested
permissions:
contents: read
jobs:
build:
name: Build and check database and frontend
runs-on: "ubuntu-latest"
steps:
- name: Checkout project
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: 'frontend/package-lock.json'
- name: Install npm dependencies
run: npm ci
working-directory: frontend
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
with:
toolchain: "stable"
- name: Rust cache
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84
with:
shared-key: "check"
cache-all-crates: true # Also cache taplo-cli
- name: Install tools
run: cargo install taplo-cli --locked
- name: Clippy
run: cargo clippy --locked --all-targets --all-features --workspace -- -Dwarnings
- name: Test rust
run: cargo test --locked
- name: Check rust formatting
run: cargo fmt --all --check
- name: Check frontend formatting
run: npm run fmt-check
working-directory: frontend
- name: Check driver-db syntax
run: taplo check driver-db/*.toml
- name: Check driver-db formatting
run: taplo fmt --check --diff
- name: Download db-dump
run: wget --no-verbose https://static.crates.io/db-dump.tar.gz
- name: Build database
run: cargo run --locked --release --bin read-driver-db
- name: Copy generated database to frontend
run: cp full-crate-db.json frontend/src/
- name: Check frontend
run: npm run check -- --fail-on-warnings
working-directory: frontend
- name: Build frontend
run: npm run build
working-directory: frontend