-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: replace Travis CI with GitHub Actions
Travis stopped working at some point. The new workflow now runs cargo-fmt and cargo-clippy, taken from the specified MSRV.
- Loading branch information
Showing
2 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: CI | ||
on: [ pull_request ] | ||
jobs: | ||
code-check: | ||
name: Code Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Parse MSRV | ||
run: sed -n 's/^rust-version = "\(.*\)"$/RUSTUP_TOOLCHAIN=\1/p' Cargo.toml >> $GITHUB_ENV | ||
- name: Install Rust Toolchain | ||
run: rustup toolchain install $RUSTUP_TOOLCHAIN | ||
- name: Install Clippy | ||
run: rustup component add clippy | ||
|
||
- name: Check format | ||
run: cargo fmt --check | ||
|
||
- name: Clippy check | ||
run: cargo clippy --no-deps -- --deny=warnings |
This file was deleted.
Oops, something went wrong.