2023-02-03 12:36:51 +03:00
|
|
|
name: "Test"
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test-tauri:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-02-13 10:55:56 +03:00
|
|
|
platform:
|
|
|
|
- ubuntu-latest
|
|
|
|
# - macos-aarch64
|
|
|
|
# - macos-latest
|
2023-02-03 12:36:51 +03:00
|
|
|
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
|
|
|
|
- name: Setup pnpm
|
|
|
|
uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: 7.x.x
|
|
|
|
run_install: |
|
|
|
|
args: ["--frozen-lockfile"]
|
|
|
|
|
|
|
|
- name: Setup rust
|
|
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
|
2023-02-07 17:52:37 +03:00
|
|
|
- name: Test rust
|
|
|
|
working-directory: src-tauri
|
|
|
|
run: cargo test
|
|
|
|
|
2023-02-03 12:36:51 +03:00
|
|
|
- name: Build tauri
|
|
|
|
uses: tauri-apps/tauri-action@v0
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
tauriScript: "pnpm tauri"
|