tauri/.github/workflows/test-on-pr.yml
Jacob Bolda c1638e92a6
fix(tauri): make github action envs absolute for extra path level in runner.rs (#438)
* fix(tauri): extra path level in runner.rs

This file is one folder deeper than the other files which reference this env. This env is a relative folder reference so we need to concat an extra folder traversal into it.

* Revert "fix(tauri): extra path level in runner.rs"

This reverts commit eb1034b4f3.

* make envs in GH Actions absolute for now

* runner is only available within steps
2020-02-19 09:02:19 -06:00

74 lines
1.8 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: ${{ runner.workspace }}/tauri/tauri/test/fixture/dist
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/src-tauri
- name: test
run: |
cargo test
env:
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/dist
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/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