tauri/.github/workflows/test-core.yml

87 lines
2.0 KiB
YAML
Raw Normal View History

name: test core
on:
pull_request:
paths:
- '.github/workflows/test-core.yml'
- 'core/**'
- 'examples/**'
- 'cli/**'
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: test
run: |
cargo test
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
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
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
- name: test
timeout-minutes: 30
run: |
cd ./cli/tauri.js
yarn
yarn test
- name: run release build
timeout-minutes: 15
working-directory: cli/tauri.js
run: yarn build-release