Skip to content

Commit cd7a923

Browse files
committed
updated CI
This adds a build run and also triggers a run on every push, not just PRs, so that we can display badges for the main branch.
1 parent 0632194 commit cd7a923

2 files changed

Lines changed: 23 additions & 32 deletions

File tree

.github/workflows/clippy.yml

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

.github/workflows/rust.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Rust CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up Rust
11+
uses: actions-rs/toolchain@v1
12+
with:
13+
toolchain: stable
14+
profile: minimal
15+
override: true
16+
- name: Cache Cargo dependencies
17+
uses: Swatinem/rust-cache@v2
18+
- name: Build
19+
run: cargo build --verbose
20+
- name: Run tests
21+
run: cargo test --all-features --verbose
22+
- name: Run linter
23+
run: cargo clippy -- -D warnings

0 commit comments

Comments
 (0)