Skip to content

Update some styles and bump glib #66

Update some styles and bump glib

Update some styles and bump glib #66

Workflow file for this run

name: "CI"
on:
workflow_call: {} # Allow this workflow to be called by other workflows
pull_request:
push:
jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Add Rust cache
uses: Swatinem/rust-cache@v2
with:
# Specify the working directory for Rust cache
workspaces: "src-tauri -> target"
# Cache cargo registry
cache-directories: |
~/.cargo/registry
~/.cargo/git
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Cache bun dependencies
uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.39
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install frontend dependencies
run: bun install
- name: Run tests
run: cd src-tauri && cargo test --all-features
- name: Run clippy
run: cd src-tauri && cargo clippy -- -D warnings