small fixes and add the n2c to the workspace properly #270
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
name: Linter and unit tests | |
on: [push] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Setup" | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: rustfmt, clippy | |
- name: "Format check" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: -- --check | |
- name: "Linter checks" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --all-features --all-targets -- --deny "clippy::all" | |
- name: "Check" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --all-features --all-targets | |
- name: "Test" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all-features --all-targets |