mirror of
https://github.com/tauri-apps/web-view.git
synced 2026-02-04 02:11:18 +01:00
114 lines
2.6 KiB
YAML
114 lines
2.6 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
rustfmt:
|
|
runs-on: ubuntu-latest
|
|
name: rustfmt
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: install stable toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
components: rustfmt
|
|
override: true
|
|
|
|
- name: install rustfmt
|
|
run: rustup component add rustfmt
|
|
|
|
- name: cargo fmt
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: fmt
|
|
args: --all -- --check
|
|
|
|
test-stable:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macOS-latest, windows-2019, ubuntu-latest]
|
|
name: cargo test stable
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: install libgtk-dev libwebkit2gtk-4.0
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install libwebkit2gtk-4.0-dev
|
|
if: contains(matrix.os, 'ubuntu')
|
|
|
|
- name: install stable toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
override: true
|
|
|
|
- name: cargo test --all
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --all
|
|
|
|
test-nightly:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macOS-latest, windows-2019, ubuntu-latest]
|
|
name: cargo test nightly
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: install libgtk-dev libwebkit2gtk-4.0
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install libwebkit2gtk-4.0-dev
|
|
if: contains(matrix.os, 'ubuntu')
|
|
|
|
- name: install nightly toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: nightly
|
|
profile: minimal
|
|
override: true
|
|
|
|
- name: cargo test --all
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --all
|
|
|
|
check-docs:
|
|
name: Docs
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macOS-latest, windows-2019, ubuntu-latest]
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: install libgtk-dev libwebkit2gtk-4.0
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install libwebkit2gtk-4.0-dev
|
|
if: contains(matrix.os, 'ubuntu')
|
|
|
|
- name: install nightly toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: nightly
|
|
profile: minimal
|
|
override: true
|
|
|
|
- name: check docs
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: doc
|
|
args: --document-private-items
|