diff options
| author | 2026-01-19 11:06:38 +0800 | |
|---|---|---|
| committer | 2026-01-19 11:06:38 +0800 | |
| commit | f5560d7e8abe4a41c5f959cb6eb888f6aef6ca65 (patch) | |
| tree | f3675bdb552a79ddb4601ccf2f5ddd81eb47c9fb /.github/workflows/test.yml | |
| parent | ee767338d6db510ef15d6b8cc11f6fb9a6215a43 (diff) | |
| parent | bdff2175a8470accdab030b3931406495c56074d (diff) | |
| download | DropOut-f5560d7e8abe4a41c5f959cb6eb888f6aef6ca65.tar.gz DropOut-f5560d7e8abe4a41c5f959cb6eb888f6aef6ca65.zip | |
Merge branch 'main' into chore/migrate-repository
Diffstat (limited to '.github/workflows/test.yml')
| -rw-r--r-- | .github/workflows/test.yml | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8bf6d2f..402de0e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Test & Build +name: Unit Test on: push: @@ -40,7 +40,8 @@ jobs: name: "macOS" steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v6 - name: Install Dependencies (Ubuntu) if: runner.os == 'Linux' && !matrix.wayland @@ -67,15 +68,13 @@ jobs: - name: Install Node.js if: github.event_name == 'workflow_dispatch' - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 22 - name: Install pnpm if: github.event_name == 'workflow_dispatch' - uses: pnpm/action-setup@v2 - with: - version: 9 + uses: pnpm/action-setup@v4 - name: Install Frontend Dependencies if: github.event_name == 'workflow_dispatch' @@ -88,8 +87,6 @@ jobs: - name: Rust Cache uses: swatinem/rust-cache@v2 - with: - workspaces: ./src-tauri - name: Run Tests working-directory: ./src-tauri @@ -111,32 +108,32 @@ jobs: - name: Upload Artifact (Linux) if: runner.os == 'Linux' && github.event_name == 'workflow_dispatch' - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 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) if: runner.os == 'Windows' && github.event_name == 'workflow_dispatch' - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 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) if: runner.os == 'macOS' && github.event_name == 'workflow_dispatch' - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 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 |