-
Notifications
You must be signed in to change notification settings - Fork 9
60 lines (56 loc) · 1.5 KB
/
main.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
56
57
58
59
60
name: Builds and tests
on: [push, pull_request]
jobs:
test:
name: Test on ${{ matrix.rust }} (${{ matrix.flags}})
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, nightly, 1.64.0]
flags:
- ""
- "--no-default-features"
- "--no-default-features --features default-rustls"
steps:
- uses: actions/checkout@master
- name: Install Rust
run: |
rustup update ${{ matrix.rust }} --no-self-update
rustup default ${{ matrix.rust }}
- run: cargo test --verbose ${{ matrix.flags }}
test-derive:
name: Test derive on ${{ matrix.rust }}
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, nightly, 1.64.0]
steps:
- uses: actions/checkout@master
- name: Install Rust
run: |
rustup update ${{ matrix.rust }} --no-self-update
rustup default ${{ matrix.rust }}
- run: |
cd derive
cargo test --verbose
rustfmt:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust
run: |
rustup update stable --no-self-update
rustup default stable
rustup component add rustfmt
- run: cargo fmt -- --check
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust
run: |
rustup update stable --no-self-update
rustup default stable
- run: cargo doc --verbose