Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clippy in CI #262

Merged
merged 8 commits into from
Dec 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,18 @@ jobs:
with:
submodules: recursive

- uses: cachix/install-nix-action@v15
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable

- name: Remove non-nix binary
run: rm -rf ~/.cargo/bin

- name: Clippy cargo-sewup
run: nix develop --ignore-environment -c cargo clippy -p cargo-sewup
env:
RUST_BACKTRACE: 1

- name: Init default project test
run: nix develop -c 'cli-init-test' default

Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,20 @@ jobs:
VALIDATE_RUST_2018: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: cachix/install-nix-action@v15
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable

- name: Remove non-nix binary
run: rm -rf ~/.cargo/bin

- name: Clippy sewup
run: nix develop -c cargo clippy -p sewup
env:
RUST_BACKTRACE: 1

- name: Default feature test
run: nix develop -c 'cargo' test -p sewup --features=default
run: nix develop -c cargo test -p sewup --features=default

- name: RDB feature test
run: nix develop -c 'cargo' test -p sewup --features=rdb --no-default-features
run: nix develop -c cargo test -p sewup --features=rdb --no-default-features
12 changes: 10 additions & 2 deletions .github/workflows/derive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,17 @@ jobs:
with:
submodules: recursive

- uses: cachix/install-nix-action@v15
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable

- name: Remove non-nix binary
run: rm -rf ~/.cargo/bin

- name: Clippy sewup-derive
run: nix develop --ignore-environment -c cargo clippy -p sewup-derive
env:
RUST_BACKTRACE: 1

- name: Derive test
run: nix develop -c 'cargo' test -p sewup-derive
run: nix develop -c cargo test -p sewup-derive
21 changes: 11 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{

inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils";
};
Expand Down