Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '22'
cache: npm
Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:

- name: Create GitHub Release
if: steps.prep_release.outputs.exists == 'false'
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ steps.prep_version.outputs.tag_name }}
name: >
Expand Down
57 changes: 50 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,57 @@ concurrency:
cancel-in-progress: true

jobs:
# -----------------------------------------------------------
# Detect which parts of the repo changed so we can skip jobs
# that have no relevant file modifications.
# -----------------------------------------------------------
changes:
name: Detect changes
runs-on: ubuntu-latest
outputs:
frontend: ${{ steps.filter.outputs.frontend }}
rust: ${{ steps.filter.outputs.rust }}
steps:
- uses: actions/checkout@v6
- uses: dorny/paths-filter@v4
id: filter
with:
filters: |
frontend:
- 'src/**'
- 'tests/**'
- 'scripts/**'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
- 'tsconfig.node.json'
- 'vite.config.ts'
- 'vitest.config.ts'
- 'eslint.config.js'
- '.prettierrc.json'
rust:
- 'src-tauri/src/**'
- 'src-tauri/tests/**'
- 'src-tauri/Cargo.toml'
- 'src-tauri/Cargo.lock'
- 'src-tauri/build.rs'
- 'src-tauri/clippy.toml'
- 'src-tauri/rustfmt.toml'

# -----------------------------------------------------------
# Frontend: ESLint / Prettier / TypeCheck / Vitest
# -----------------------------------------------------------
frontend:
name: 'Frontend: ESLint / Prettier / TypeCheck / Vitest'
needs: changes
if: needs.changes.outputs.frontend == 'true' || github.event_name == 'workflow_dispatch'
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '22'
cache: npm
Expand All @@ -41,20 +83,21 @@ jobs:
- name: Unit tests (Vitest)
run: npm run test

# -----------------------------------------------------------
# Rust: fmt / Clippy / Test
# -----------------------------------------------------------
rust:
name: 'Rust: fmt / Clippy / Test'
needs: changes
if: needs.changes.outputs.rust == 'true' || github.event_name == 'workflow_dispatch'
runs-on: windows-latest
# Cap the job at 25 min so a hung test (e.g. wiremock + tokio
# paused-time interaction on Windows) fails loudly within the
# next CI cycle instead of silently consuming the GitHub default
# 6-hour budget. Healthy runs land in 4-8 min on a warm cache.
timeout-minutes: 25
defaults:
run:
working-directory: src-tauri
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install Rust (stable)
uses: dtolnay/rust-toolchain@stable
Expand Down