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'
|
2021-03-13 05:49:55 +03:00
|
|
|
- 'core/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'cli/**'
|
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
|
2020-01-15 06:03:59 +03:00
|
|
|
- name: test
|
|
|
|
run: |
|
2020-02-06 04:18:47 +03:00
|
|
|
cargo test
|
2019-11-02 11:36:15 +03:00
|
|
|
|
2021-01-30 18:15:47 +03:00
|
|
|
test-tauri-cli:
|
|
|
|
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
|
|
|
|
override: true
|
|
|
|
- name: build api
|
|
|
|
working-directory: ./api
|
|
|
|
run: yarn && yarn build
|
|
|
|
- name: build CLI
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
|
|
|
args: --manifest-path ./cli/core/Cargo.toml
|
|
|
|
|
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-01-14 16:55:39 +03:00
|
|
|
- name: test
|
2021-01-30 18:15:47 +03:00
|
|
|
timeout-minutes: 30
|
2020-01-14 16:55:39 +03:00
|
|
|
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
|