# Copyright 2019-2021 Tauri Programme within The Commons Conservancy # SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: MIT 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: ./tooling/api run: yarn && yarn build - name: build CLI uses: actions-rs/cargo@v1 with: command: build args: --manifest-path ./tooling/cli.rs/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 - 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 ./tooling/cli.js yarn yarn test - name: run release build timeout-minutes: 15 working-directory: tooling/cli.js run: yarn build-release