Skip to content

Commit 38860a6

Browse files
committed
Use GitHub Actions for CI
1 parent 3a70a8c commit 38860a6

File tree

2 files changed

+87
-16
lines changed

2 files changed

+87
-16
lines changed

.github/workflows/ci.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
env:
10+
RUSTFLAGS: -Dwarnings
11+
12+
jobs:
13+
lints:
14+
name: Linting and Tests
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
with:
20+
submodules: recursive
21+
22+
- uses: actions-rs/toolchain@v1
23+
with:
24+
profile: minimal
25+
toolchain: stable
26+
override: true
27+
components: rustfmt, clippy
28+
29+
- uses: Swatinem/rust-cache@v1
30+
31+
- name: Cargo fmt
32+
uses: actions-rs/cargo@v1
33+
with:
34+
command: fmt
35+
args: --all -- --check
36+
37+
- name: Cargo clippy
38+
uses: actions-rs/cargo@v1
39+
with:
40+
command: clippy
41+
args: --all-features --tests -- -D clippy::all
42+
43+
all_features:
44+
name: Tests (all features)
45+
runs-on: ubuntu-latest
46+
47+
steps:
48+
- uses: actions/checkout@v2
49+
with:
50+
submodules: recursive
51+
52+
- uses: actions-rs/toolchain@v1
53+
with:
54+
profile: minimal
55+
toolchain: stable
56+
override: true
57+
58+
- uses: Swatinem/rust-cache@v1
59+
60+
- name: Cargo test
61+
uses: actions-rs/cargo@v1
62+
with:
63+
command: test
64+
args: --all-features
65+
66+
no_features:
67+
name: Tests (no default features)
68+
runs-on: ubuntu-latest
69+
70+
steps:
71+
- uses: actions/checkout@v2
72+
with:
73+
submodules: recursive
74+
75+
- uses: actions-rs/toolchain@v1
76+
with:
77+
profile: minimal
78+
toolchain: stable
79+
override: true
80+
81+
- uses: Swatinem/rust-cache@v1
82+
83+
- name: Cargo test
84+
uses: actions-rs/cargo@v1
85+
with:
86+
command: test
87+
args: --no-default-features

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)