1
1
mirror of https://github.com/oxalica/nil.git synced 2024-11-22 11:22:46 +03:00

Revert test in pre-commit and fix CI

Partially reverts 51e6714.

1. Testing in pre-commit is too long and suffers from different
   environment setup.
2. `--include-ignored` breaks criterion CLI currently.
This commit is contained in:
oxalica 2023-10-17 18:30:20 +08:00
parent 73eeaa64d8
commit b4a01cee32
2 changed files with 4 additions and 3 deletions

View File

@ -51,7 +51,10 @@ jobs:
- name: Build - name: Build
run: nix develop .#full --command cargo build --workspace --all-targets run: nix develop .#full --command cargo build --workspace --all-targets
- name: Test - name: Test
run: nix develop .#full --command cargo test --workspace --all-targets -- --include-ignored run: nix develop .#full --command cargo test --workspace --all-targets
# Waiting for https://github.com/bheisler/criterion.rs/pull/703
- name: Test with ignored
run: nix develop .#full --command cargo test --workspace --all-targets -- --ignored
nix-flake: nix-flake:
name: Flake package name: Flake package

View File

@ -87,8 +87,6 @@ rec {
|| die 'Format failed' || die 'Format failed'
cargo clippy --workspace --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 )
''; '';