2019-11-02 11:36:15 +03:00
|
|
|
name: test library
|
|
|
|
|
2019-11-28 01:26:24 +03:00
|
|
|
on: pull_request
|
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-02-19 18:02:19 +03:00
|
|
|
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/dist
|
|
|
|
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/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-02-19 18:02:19 +03:00
|
|
|
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/dist
|
|
|
|
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/src-tauri
|
2019-11-02 11:36:15 +03:00
|
|
|
|
2019-12-21 12:47:33 +03:00
|
|
|
build-tauri-bundler:
|
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
|
|
|
|
- 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: build
|
|
|
|
run: |
|
2020-02-08 18:51:48 +03:00
|
|
|
cd ./cli/tauri-bundler
|
2020-01-14 16:55:39 +03:00
|
|
|
cargo build
|
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-09 23:57:27 +03:00
|
|
|
- run: cargo install tauri-bundler --force
|
2020-01-14 16:55:39 +03:00
|
|
|
- name: test
|
|
|
|
timeout-minutes: 15
|
|
|
|
run: |
|
|
|
|
cd ./cli/tauri.js
|
|
|
|
yarn
|
|
|
|
yarn test
|