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
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- run: git tag ${{ github.event.inputs.tag }}
- run: git tag v${{ env.VENDOR_VERSION }}
- name: setup node
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -85,16 +85,18 @@ jobs:
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
workspaces: 'apps/desktop/src-tauri -> target'

- name: install frontend dependencies
run: npm install
run: npm ci
working-directory: apps/desktop

- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
with:
projectPath: apps/desktop
releaseId: ${{ env.RELEASE_ID }}
releaseDraft: true
prerelease: true
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/rust-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "Rust Tests"

on:
pull_request:
types: [opened, synchronize, reopened]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
cargo-test:
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable

- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libgtk-3-dev \
libwebkit2gtk-4.1-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf

- name: Stub Nuxt dist output
run: |
mkdir -p dist
test -f dist/index.html || echo '<!doctype html><title>stub</title>' > dist/index.html
working-directory: apps/desktop

- name: Cache Rust builds
uses: swatinem/rust-cache@v2
with:
workspaces: 'apps/desktop/src-tauri -> target'

- name: Run cargo test
run: cargo test --manifest-path apps/desktop/src-tauri/Cargo.toml
60 changes: 0 additions & 60 deletions .github/workflows/test.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: UI Tests

on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
vitest:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
cache-dependency-path: apps/desktop/package-lock.json

- name: Install dependencies
run: npm install
working-directory: apps/desktop

- name: Prepare Nuxt artifacts
run: npx nuxi prepare
working-directory: apps/desktop

- name: Run unit tests
run: npm run test:unit
working-directory: apps/desktop
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ dist-ssr
*.local
.next

# Build Folders/files
/target

# Editor directories and files
.vscode/*
!.vscode/extensions.json
Expand All @@ -35,4 +38,4 @@ dist-ssr
# Local env files
.env
.env.*
!.env.example
!.env.example
Loading
Loading