-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (41 loc) · 1023 Bytes
/
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
name: Rust
on:
push:
branches: '**'
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-**'
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test (${{matrix.rust-version}})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust-version: [stable, beta, nightly]
env:
QUICKCHECK_GENERATOR_SIZE: 50
QUICKCHECK_TESTS: 1000
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: "cargo test --verbose"
- name: Build Documentation
run: cargo doc
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
strategy:
matrix:
rust-version: [nightly-2024-10-28]
steps:
- uses: actions/checkout@v2
- name: Install
run: |
rustup toolchain install ${{matrix.rust-version}}
rustup component add --toolchain ${{matrix.rust-version}} rustfmt
- name: Check
run: cargo +${{matrix.rust-version}} fmt -- --check