-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.08 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Test
on:
push:
branches:
- "main"
pull_request:
env:
RUST_BACKTRACE: 1
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable]
steps:
- uses: actions/checkout/@v4
- name: Rust Toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6
- name: Install Dependencies
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt update
sudo apt install -y libdbus-1-dev libsecret-1-dev gnome-keyring
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest
- name: Run Test
run: |
# cargo nextest run get_all_pbs_works new_get_index # generate database
cargo nextest run --locked
cargo test --doc