mirror of
https://github.com/oxalica/nil.git
synced 2024-09-17 13:37:16 +03:00
Fix benchmark and enforce test success in CI
This commit is contained in:
parent
ee215a18ab
commit
51e67142ad
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@ -49,9 +49,9 @@ jobs:
|
|||||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
nix_path: nixpkgs=channel:nixpkgs-unstable
|
nix_path: nixpkgs=channel:nixpkgs-unstable
|
||||||
- name: Build
|
- name: Build
|
||||||
run: nix develop .#full --command cargo build --all
|
run: nix develop .#full --command cargo build --workspace --all-targets
|
||||||
- name: Test
|
- name: Test
|
||||||
run: nix develop .#full --command cargo test --all -- --include-ignored
|
run: nix develop .#full --command cargo test --workspace --all-targets -- --include-ignored
|
||||||
|
|
||||||
nix-flake:
|
nix-flake:
|
||||||
name: Flake package
|
name: Flake package
|
||||||
|
@ -4,7 +4,7 @@ use criterion::{BatchSize, Criterion};
|
|||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
const TEST_FILES: &[(&str, &str)] = &[
|
const TEST_FILES: &[(&str, &str)] = &[
|
||||||
("gcc-13", "pkgs/development/compilers/gcc/13/default.nix"),
|
("gcc-13", "pkgs/development/compilers/gcc/default.nix"),
|
||||||
("all-packages", "pkgs/top-level/all-packages.nix"),
|
("all-packages", "pkgs/top-level/all-packages.nix"),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -85,8 +85,10 @@ rec {
|
|||||||
fi
|
fi
|
||||||
cargo fmt --all --check \
|
cargo fmt --all --check \
|
||||||
|| die 'Format failed'
|
|| die 'Format failed'
|
||||||
cargo clippy --all --all-targets -- ${clippyFlags} \
|
cargo clippy --workspace --all-targets -- ${clippyFlags} \
|
||||||
|| die 'Clippy failed'
|
|| die 'Clippy failed'
|
||||||
|
cargo test --workspace --all-targets \
|
||||||
|
|| die 'Test failed'
|
||||||
|
|
||||||
( cd editors/coc-nil; npm run lint )
|
( cd editors/coc-nil; npm run lint )
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user