tauri/.github/workflows/test-on-pr.yml
github-actions[bot] 6caed9c773
fix(publish): login and build (#406) [version updates] (#407)
* yarn before pack

* login to cargo to publish

* skip install on same version

* workflow edits trigger too

* and this one too

Co-authored-by: Jacob Bolda <me@jacobbolda.com>
2020-02-09 16:35:23 -06:00

74 lines
1.6 KiB
YAML

name: test library
on: pull_request
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: build
run: |
cd ./tauri
cargo build
env:
TAURI_DIST_DIR: ../../test/fixture/dist
TAURI_DIR: ../test/fixture/src-tauri
- name: test
run: |
cargo test
env:
TAURI_DIST_DIR: ../../test/fixture/dist
TAURI_DIR: ../test/fixture/src-tauri
build-tauri-bundler:
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: build
run: |
cd ./cli/tauri-bundler
cargo build
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: test
timeout-minutes: 15
run: |
cd ./cli/tauri.js
yarn
yarn test