-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (43 loc) · 1.16 KB
/
pr.yaml
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
name: PR
on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
strategy:
fail-fast: false
matrix:
tag: [ default_features, all_features ]
include:
- tag: default_features
name: Test with default features enabled
cargo_test_opts: ""
- tag: all_features
name: Test with all features enabled
cargo_test_opts: "--all-features"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Build and test
run: cargo test ${{ matrix.cargo_test_opts }}
render_docs:
name: Render docs
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Build docs
run: cargo doc --all-features --no-deps