-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (50 loc) · 1.4 KB
/
rust.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
52
53
54
55
name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
doc:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
- name: Spell Check Repo
uses: crate-ci/typos@master
- name: Format
run: cargo fmt -- --check
- name: Docs
run: cargo +nightly doc --features http-ureq,clap-parse
env:
RUSTDOCFLAGS: --cfg docsrs
- uses: baptiste0928/cargo-install@v2
with:
crate: cargo-msrv
- name: Verify minimum rust version
run: cargo msrv verify
build:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, windows, macOS]
steps:
- uses: actions/checkout@v2
- name: Check
run: cargo check --tests --features http-ureq
- name: Check
run: cargo check --tests --features clap-parse
- name: Check
run: cargo check --tests --features http-curl
- name: Clippy ureq
run: cargo clippy --no-deps --features http-ureq
- name: Clippy clap & curl
run: cargo clippy --no-deps --features http-curl,clap-parse
- name: Run tests with default features (i.e. none)
run: cargo test
- name: Run clap & curl tests
run: cargo test --features http-curl,clap-parse