2020-07-15 14:14:11 +03:00
|
|
|
name: test core
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2020-07-16 02:05:07 +03:00
|
|
|
- '.github/workflows/test-core.yml'
|
2020-07-16 02:39:28 +03:00
|
|
|
- 'cli/**'
|
|
|
|
- 'tauri/**'
|
|
|
|
- 'tauri-api/**'
|
|
|
|
- 'tauri-utils/**'
|
2019-11-02 11:36:15 +03:00
|
|
|
|
2020-06-17 22:30:41 +03:00
|
|
|
env:
|
|
|
|
RUST_BACKTRACE: 1
|
2019-11-02 11:36:15 +03:00
|
|
|
|
|
|
|
jobs:
|
2019-12-21 12:47:33 +03:00
|
|
|
build-tauri-core:
|
2019-11-02 11:36:15 +03:00
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2019-12-01 15:26:28 +03:00
|
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
2019-11-02 11:36:15 +03:00
|
|
|
|
|
|
|
steps:
|
2020-01-14 16:55:39 +03:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: install stable
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2019-11-16 23:24:24 +03:00
|
|
|
toolchain: stable
|
2020-01-14 16:55:39 +03:00
|
|
|
- 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:
|
2020-06-15 05:36:35 +03:00
|
|
|
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/examples/communication/dist
|
|
|
|
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/examples/communication/src-tauri
|
2020-01-15 06:03:59 +03:00
|
|
|
- name: test
|
|
|
|
run: |
|
2020-02-06 04:18:47 +03:00
|
|
|
cargo test
|
2020-01-15 06:03:59 +03:00
|
|
|
env:
|
2020-06-15 05:36:35 +03:00
|
|
|
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/examples/communication/dist
|
|
|
|
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/examples/communication/src-tauri
|
2019-11-02 11:36:15 +03:00
|
|
|
|
2019-12-21 12:47:33 +03:00
|
|
|
test-tauri-js-cli:
|
2019-11-02 11:36:15 +03:00
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
|
|
|
|
steps:
|
2020-01-14 16:55:39 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-03-07 19:40:24 +03:00
|
|
|
- name: install webkit2gtk (ubuntu only)
|
|
|
|
if: matrix.platform == 'ubuntu-latest'
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y webkit2gtk-4.0
|
2020-03-10 03:27:54 +03:00
|
|
|
- run: cargo install --path ./cli/tauri-bundler --force
|
2020-01-14 16:55:39 +03:00
|
|
|
- name: test
|
|
|
|
timeout-minutes: 15
|
|
|
|
run: |
|
|
|
|
cd ./cli/tauri.js
|
|
|
|
yarn
|
|
|
|
yarn test
|
2020-11-13 11:27:42 +03:00
|
|
|
- name: run release build
|
|
|
|
timeout-minutes: 15
|
|
|
|
working-directory: cli/tauri.js
|
|
|
|
run: yarn build-release
|
|
|
|
|