Skip to content

fix: only prompt on a genuine local edit that conflicts with disk #27

fix: only prompt on a genuine local edit that conflicts with disk

fix: only prompt on a genuine local edit that conflicts with disk #27

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
# Cancel superseded runs on the same ref to save CI minutes.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
js:
name: Frontend (vitest + build)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Unit tests
run: yarn test:js
- name: Type-check + build
run: yarn build
rust:
name: Backend (fmt + clippy + cargo test)
runs-on: ubuntu-latest
defaults:
run:
working-directory: src-tauri
steps:
- uses: actions/checkout@v4
# Tauri v2 Linux build/test dependencies.
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libgtk-3-dev \
librsvg2-dev \
libayatana-appindicator3-dev \
libsoup-3.0-dev \
build-essential \
curl \
wget \
file \
libssl-dev
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Format check
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Tests
run: cargo test
# Coverage is reported for visibility but does not gate the build.
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Coverage summary
run: cargo llvm-cov --summary-only