mirror of
https://github.com/ivabus/gui
synced 2025-04-23 22:17:18 +03:00
46 lines
No EOL
1.2 KiB
YAML
46 lines
No EOL
1.2 KiB
YAML
name: "test"
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
test-tauri:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# platform: [macos-latest, ubuntu-20.04, windows-latest]
|
|
platform: [macos-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 7
|
|
- name: setup node
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 16
|
|
cache: 'pnpm'
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
- name: install Rust stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- name: install dependencies (ubuntu only)
|
|
if: matrix.platform == 'ubuntu-20.04'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
|
|
|
|
- name: install app dependencies and build it
|
|
run: pnpm install && pnpm --filter gui build
|
|
|
|
- name: test build tauri
|
|
run: pnpm --filter gui tauri build
|
|
|
|
# - uses: tauri-apps/tauri-action@v0
|
|
# env:
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
# with:
|
|
# projectPath: ./packages/gui
|
|
# configPath: ./packages/gui/src-tauri/tauri.conf.json |