Skip to content

Commit f870d34

Browse files
committed
Run test suite using GitHub Actions
1 parent 9ee7df1 commit f870d34

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on: [push, pull_request]
2+
3+
name: Tests
4+
5+
jobs:
6+
test:
7+
name: Tests
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
rust:
12+
- stable
13+
- 1.34.0
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Install toolchain
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
profile: minimal
22+
toolchain: ${{ matrix.rust }}
23+
override: true
24+
25+
- name: Test (default features)
26+
uses: actions-rs/cargo@v1
27+
with:
28+
command: test
29+
30+
- name: Test (no default features)
31+
uses: actions-rs/cargo@v1
32+
with:
33+
command: test
34+
args: --no-default-features
35+
36+
- name: Test (all features)
37+
uses: actions-rs/cargo@v1
38+
with:
39+
command: test
40+
args: --all-features

0 commit comments

Comments
 (0)