mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-16 23:22:26 +03:00
f1a8a65be2
* perf(workflow) run bundler test only when the bundler changes * perf(workflow) split clippy/eslint/fmt checks * chore(workflow) rerun if workflow file change * chore(workflow) fix name * fix(tests) bundler test on windows, removed since it's not used
71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
name: test core
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/test-core.yml
|
|
- ./cli/**
|
|
- ./tauri/**
|
|
- ./tauri-api/**
|
|
- ./tauri-utils/**
|
|
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
|
|
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/examples/communication/dist
|
|
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/examples/communication/src-tauri
|
|
- name: test
|
|
run: |
|
|
cargo test
|
|
env:
|
|
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/examples/communication/dist
|
|
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/examples/communication/src-tauri
|
|
|
|
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
|