Skip to content

Commit c27b83e

Browse files
authored
Explore GitHub Actions instead of Travis (#165)
Travis isn't building new PRs, so it seems a perfect opportunity to try something else.
1 parent bf75832 commit c27b83e

File tree

2 files changed

+69
-50
lines changed

2 files changed

+69
-50
lines changed

.github/workflows/check.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
branches:
7+
- main
8+
9+
name: CI
10+
11+
jobs:
12+
test:
13+
name: tests
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
rust:
18+
- 1.22.0
19+
- stable
20+
- beta
21+
- nightly
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: actions-rs/toolchain@v1
25+
with:
26+
profile: minimal
27+
toolchain: ${{ matrix.rust }}
28+
override: true
29+
- uses: actions-rs/cargo@v1
30+
with:
31+
command: test
32+
args: --verbose --features "strict"
33+
34+
fmt:
35+
name: fmt
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v2
39+
- uses: actions-rs/toolchain@v1
40+
with:
41+
profile: minimal
42+
toolchain: stable
43+
override: true
44+
- run: rustup component add rustfmt
45+
- uses: actions-rs/cargo@v1
46+
with:
47+
command: fmt
48+
args: --all -- --check
49+
50+
clippy:
51+
name: clippy
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v2
55+
- uses: actions-rs/toolchain@v1
56+
with:
57+
profile: minimal
58+
toolchain: stable
59+
override: true
60+
- run: rustup component add clippy
61+
- uses: actions-rs/cargo@v1
62+
with:
63+
command: clippy
64+
args: -- -D warnings
65+
- uses: actions-rs/cargo@v1
66+
with:
67+
command: clippy
68+
# Allow deprecated because we test the no_std feature.
69+
args: --all-features -- -D warnings -A deprecated

.travis.yml

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

0 commit comments

Comments
 (0)