aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2026-01-18 22:13:25 +0800
committerGitHub <noreply@github.com>2026-01-18 22:13:25 +0800
commit53d3d71b69408b5fade60fbc41cee3d8e0946cbe (patch)
treeeb54be440ee6fe7af30ea54cc2f689563dc28ef8 /.github/workflows/test.yml
parent30a7da9eb1734e19bdb98083bdaae757e0ce9b3a (diff)
parent09b2e0f84721587f0b0a59818ebc5720c447ebb8 (diff)
downloadDropOut-53d3d71b69408b5fade60fbc41cee3d8e0946cbe.tar.gz
DropOut-53d3d71b69408b5fade60fbc41cee3d8e0946cbe.zip
Adopt Semifold CI and prepare 0.2.0-alpha pre-release (#62)
Refer: http://semifold.noctisynth.org/ ## Summary by Sourcery Adopt Semifold-based release management and prepare the project for a 0.2.0-alpha pre-release across Rust and UI packages. New Features: - Introduce Semifold CI release workflow to orchestrate builds, publishing, and changelog management. - Add Semifold status workflow to report release status on pull requests. - Add workspace-level Node tooling and scripts to manage Tauri version bumping and project preparation. Enhancements: - Refactor GitHub Actions workflows for build, test, check, and lint to simplify pnpm usage, update action versions, and standardize artifact paths. - Move Rust profile configuration into a new Cargo workspace and add a pnpm workspace for the UI package. - Configure Semifold changelog and release metadata for Rust and Node packages, including alpha pre-release tagging. Build: - Replace the tag-triggered GitHub release workflow with a branch-based Semifold CI pipeline that builds artifacts for Linux, macOS, and Windows and uploads them for publishing. - Update CI action versions (checkout, setup-node, upload-artifact, download-artifact) and adjust Rust cache configuration and artifact locations. - Add root workspace package.json, pnpm-workspace.yaml, and pnpm overrides to centralize tooling and dependency management. CI: - Add a dedicated Semifold status GitHub Actions workflow for pull requests to main. - Update existing check, lint, test, and build workflows to align with the new workspace layout and artifact directories. Deployment: - Integrate Semifold configuration for automated publishing to crates.io and npm, including pre-checks, post-version hooks, and use of stored build artifacts in releases. Tests: - Adjust test workflow artifact paths to match the new target directory structure and workspace configuration. Chores: - Remove unused Python packaging files and old Node lockfiles that are no longer part of the build or release process.
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml20
1 files changed, 8 insertions, 12 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 8c7c50c..402de0e 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -75,8 +75,6 @@ jobs:
- name: Install pnpm
if: github.event_name == 'workflow_dispatch'
uses: pnpm/action-setup@v4
- with:
- version: latest
- name: Install Frontend Dependencies
if: github.event_name == 'workflow_dispatch'
@@ -89,8 +87,6 @@ jobs:
- name: Rust Cache
uses: swatinem/rust-cache@v2
- with:
- workspaces: ./src-tauri
- name: Run Tests
working-directory: ./src-tauri
@@ -116,9 +112,9 @@ jobs:
with:
name: dropout-linux-${{ matrix.wayland && 'arch' || 'ubuntu' }}-${{ steps.slug.outputs.sha8 }}
path: |
- src-tauri/target/debug/bundle/appimage/*.AppImage
- src-tauri/target/debug/bundle/deb/*.deb
- src-tauri/target/debug/dropout
+ target/debug/bundle/appimage/*.AppImage
+ target/debug/bundle/deb/*.deb
+ target/debug/dropout
retention-days: 5
- name: Upload Artifact (Windows)
@@ -127,9 +123,9 @@ jobs:
with:
name: dropout-windows-${{ steps.slug.outputs.sha8 }}
path: |
- src-tauri/target/debug/bundle/msi/*.msi
- src-tauri/target/debug/bundle/nsis/*.exe
- src-tauri/target/debug/dropout.exe
+ target/debug/bundle/msi/*.msi
+ target/debug/bundle/nsis/*.exe
+ target/debug/dropout.exe
retention-days: 5
- name: Upload Artifact (macOS)
@@ -138,6 +134,6 @@ jobs:
with:
name: dropout-macos-${{ steps.slug.outputs.sha8 }}
path: |
- src-tauri/target/debug/bundle/dmg/*.dmg
- src-tauri/target/debug/bundle/macos/DropOut.app
+ target/debug/bundle/dmg/*.dmg
+ target/debug/bundle/macos/DropOut.app
retention-days: 5