mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-19 08:31:35 +03:00
e58110afd6
* chore(checkin): cargo.lock * feat(upgrades): update and try to fix node tests * fix(@iarna): replace with @tauri-apps * chore(deps): upgrade sharp * feat(env): add env var that works on mac * feat(deps): upgrade, cleanup and update code * fix(workflow): env vars * chore(deps): upgrades * fix(.gitignore)
91 lines
1.9 KiB
YAML
91 lines
1.9 KiB
YAML
name: test library
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
build-tauri:
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [macos-latest, windows-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 3
|
|
- name: install stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- name: build
|
|
run: |
|
|
cd ./tauri
|
|
cargo build
|
|
env:
|
|
TAURI_DIST_DIR: ../../test/fixture/dist
|
|
TAURI_CONFIG_DIR: ../test/fixture/
|
|
|
|
build-tauri-ubuntu-latest:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 3
|
|
- name: install stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- name: install webkit2gtk
|
|
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_CONFIG_DIR: ../test/fixture
|
|
|
|
build-tauri-cli:
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 3
|
|
- name: install stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- name: build
|
|
run: |
|
|
cd ./cli/tauri-cli
|
|
cargo build
|
|
|
|
test-tauri-js:
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 3
|
|
- name: test
|
|
timeout-minutes: 15
|
|
run: |
|
|
cd ./cli/tauri.js
|
|
yarn
|
|
yarn test |