2023-04-03 16:01:59 +03:00
|
|
|
{{{{raw}}}}
|
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-04-02 19:59:26 +03:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2023-04-03 16:01:59 +03:00
|
|
|
|
|
|
|
jobs:
|
2024-04-02 19:59:26 +03:00
|
|
|
test:
|
2023-04-03 16:01:59 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-04-02 19:59:26 +03:00
|
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
2023-04-03 16:01:59 +03:00
|
|
|
|
2024-04-02 19:59:26 +03:00
|
|
|
runs-on: ${{ matrix.platform }}
|
2023-04-03 16:01:59 +03:00
|
|
|
|
2024-04-02 19:59:26 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: install webkit2gtk
|
|
|
|
if: matrix.platform == 'ubuntu-latest'
|
2023-04-03 16:01:59 +03:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y webkit2gtk-4.1
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
2024-04-02 19:59:26 +03:00
|
|
|
- run: cargo test --all-targets --all-features -- -D warnings
|
2023-04-03 16:01:59 +03:00
|
|
|
{{{{/raw}}}}
|