Skip to content

Commit d7e75dd

Browse files
authored
Create rust.yml
1 parent 214ff66 commit d7e75dd

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Rust nightly
17+
uses: actions-rs/toolchain@v1
18+
with:
19+
profile: minimal
20+
toolchain: nightly
21+
components: clippy, rustfmt
22+
override: true
23+
- name: Build
24+
run: cargo build --verbose
25+
- name: Check formatting # Doesn't fail build
26+
run: cargo fmt -- --check # --error-on-unformatted
27+
- name: Run tests # Doesn't fail build
28+
run: cargo clippy
29+
- name: Run tests
30+
run: cargo test --verbose

0 commit comments

Comments
 (0)