-
Notifications
You must be signed in to change notification settings - Fork 49
55 lines (39 loc) · 994 Bytes
/
ci.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:
branches:
- master
pull_request:
branches:
- master
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ok-nick/[email protected]
- name: Validate Crate Versions
run: lune run validate-crate-versions
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust_version: [stable]
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Setup Rust toolchain
run: rustup default ${{ matrix.rust_version }}
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Build (all features)
run: cargo build --all-features --verbose
- name: Run tests (all features)
run: cargo test --all-features --verbose
- name: Check Formatting (stable only)
run: cargo fmt -- --check
if: matrix.rust_version == 'stable'