Skip to content

Commit

Permalink
Add Cargo CI action
Browse files Browse the repository at this point in the history
Runs `cargo check` and `cargo clippy` on the latest nightly.
  • Loading branch information
kotauskas authored Apr 30, 2020
1 parent 618acf8 commit 9046617
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Rust

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
check:
name: cargo check and Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy

# `cargo check` command here will use installed `nightly`
# as it is set as an "override" for current directory

- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
- name: Run Clippy
uses: actions-rs/cargo@v1
with:
command: clippy

0 comments on commit 9046617

Please sign in to comment.