1
1
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:
oxalica 2023-10-16 21:45:24 +08:00
parent ee215a18ab
commit 51e67142ad
3 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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"),
];

View File

@ -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 )
'';