mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-19 08:31:35 +03:00
37afc5b0dc
* fix(tauri.js) determine app path correctly * fix(lint): replace backtick with single-quote * fix(tests) mock app-paths * fix(tauri.js) linting * fix(test) use local tauri on empty fixture * fix(tauri.js) linting * fix(workflows) use local tauri-bundler test-tauri-js-cli * fix(workflows) wrong cargo install command * fix(tauri) comment webview-spawning test Co-authored-by: nothingismagick <denjell@sfosc.org>
80 lines
2.0 KiB
YAML
80 lines
2.0 KiB
YAML
name: test library
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
build-tauri-core:
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- name: install webkit2gtk (ubuntu only)
|
|
if: matrix.platform == 'ubuntu-latest'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y webkit2gtk-4.0
|
|
- name: build
|
|
run: |
|
|
cd ./tauri
|
|
cargo build
|
|
env:
|
|
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/dist
|
|
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/src-tauri
|
|
- name: test
|
|
run: |
|
|
cargo test
|
|
env:
|
|
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/dist
|
|
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/src-tauri
|
|
|
|
build-tauri-bundler:
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- name: build
|
|
run: |
|
|
cd ./cli/tauri-bundler
|
|
cargo build
|
|
|
|
test-tauri-js-cli:
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install webkit2gtk (ubuntu only)
|
|
if: matrix.platform == 'ubuntu-latest'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y webkit2gtk-4.0
|
|
- run: cargo install --path ./cli/tauri-bundler --force
|
|
- name: test
|
|
timeout-minutes: 15
|
|
run: |
|
|
cd ./cli/tauri.js
|
|
yarn
|
|
yarn test
|