mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-25 18:49:11 +03:00
44 lines
918 B
YAML
44 lines
918 B
YAML
name: "Test"
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
test-tauri:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform:
|
|
- ubuntu-latest
|
|
# - macos-aarch64
|
|
# - macos-latest
|
|
|
|
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
|
|
|
|
- name: Test rust
|
|
working-directory: src-tauri
|
|
run: cargo test
|
|
|
|
- name: Build tauri
|
|
uses: tauri-apps/tauri-action@v0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
tauriScript: "pnpm tauri"
|