Skip to content

Commit acc42f0

Browse files
committed
Add CI
1 parent c3426c4 commit acc42f0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
rust_version: [stable, "1.39.0"]
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Setup Rust toolchain
18+
run: rustup default ${{ matrix.rust_version }}
19+
- name: Build
20+
run: cargo build --all --verbose
21+
- name: Run tests
22+
run: cargo test --all --verbose
23+
- name: Rustfmt and Clippy
24+
run: |
25+
cargo fmt -- --check
26+
cargo clippy
27+
if: matrix.rust_version == 'stable'

0 commit comments

Comments
 (0)