2022-12-09 05:50:24 +11:00
|
|
|
# Copyright 2022-2022 Tauri Programme within The Commons Conservancy
|
2022-10-28 05:04:35 +11:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
env:
|
|
|
|
RUST_BACKTRACE: 1
|
|
|
|
|
|
|
|
concurrency:
|
2023-06-20 04:58:45 +10:00
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2022-10-28 05:04:35 +11:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2022-11-06 23:25:20 +11:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-06-20 04:58:45 +10:00
|
|
|
os: ["windows-latest", "macos-latest", "ubuntu-latest"]
|
2022-11-06 23:25:20 +11:00
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
2022-10-28 05:04:35 +11:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2022-11-06 23:25:20 +11:00
|
|
|
- name: install system deps
|
|
|
|
if: contains(matrix.os, 'ubuntu')
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2023-07-26 05:01:35 +10:00
|
|
|
sudo apt-get install -y libgtk-3-dev libxdo-dev libwebkit2gtk-4.1-dev
|
2022-11-06 23:25:20 +11:00
|
|
|
|
2022-10-28 05:04:35 +11:00
|
|
|
- name: install stable
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
2023-06-20 04:58:45 +10:00
|
|
|
command: test
|