Skip to content

Commit

Permalink
streamline and improve CI
Browse files Browse the repository at this point in the history
switches clippy over to stable
  • Loading branch information
daniel5151 committed Sep 18, 2021
1 parent 0d04c9c commit abdaca5
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 71 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
on: [push, pull_request]

jobs:
test:
name: clippy + tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --tests --examples --features=std -- -D warnings
# don't forget the no_std example!
- name: cargo clippy (example_no_std)
uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path example_no_std/Cargo.toml
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --features=std
rustfmt:
name: rustfmt (nightly)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt
- name: cargo +nightly fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
# don't forget the no_std example!
- name: cargo +nightly fmt (example_no_std)
uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path example_no_std/Cargo.toml
33 changes: 0 additions & 33 deletions .github/workflows/lints.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/stable-ci.yml

This file was deleted.

0 comments on commit abdaca5

Please sign in to comment.