mirror of
https://github.com/oxalica/nil.git
synced 2024-08-16 22:20:31 +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 }}
|
||||
nix_path: nixpkgs=channel:nixpkgs-unstable
|
||||
- name: Build
|
||||
run: nix develop .#full --command cargo build --all
|
||||
run: nix develop .#full --command cargo build --workspace --all-targets
|
||||
- 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:
|
||||
name: Flake package
|
||||
|
@ -4,7 +4,7 @@ use criterion::{BatchSize, Criterion};
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
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"),
|
||||
];
|
||||
|
||||
|
@ -85,8 +85,10 @@ rec {
|
||||
fi
|
||||
cargo fmt --all --check \
|
||||
|| die 'Format failed'
|
||||
cargo clippy --all --all-targets -- ${clippyFlags} \
|
||||
cargo clippy --workspace --all-targets -- ${clippyFlags} \
|
||||
|| die 'Clippy failed'
|
||||
cargo test --workspace --all-targets \
|
||||
|| die 'Test failed'
|
||||
|
||||
( cd editors/coc-nil; npm run lint )
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user