ci: use cargo t instead of nextest (#3646)

This commit is contained in:
Emanuele Stoppa 2024-08-12 13:58:48 +01:00 committed by GitHub
parent 9ee7d5963f
commit ef5fd3aa91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 18 deletions

View file

@ -1,8 +1,7 @@
# This workflow run when something is pushed on main and it does:
# - normal checks like in the normal PRs
# - expand the test suite to be run on multiple OS
# - runs the coverage and prints in the command line
# - normal checks like in the normal PRs
# - expand the test suite to be run on multiple OS
# - runs the coverage and prints in the command line
name: CI on main
on:
workflow_dispatch:
@ -92,12 +91,9 @@ jobs:
- name: Install toolchain
uses: moonrepo/setup-rust@e013866c4215f77c925f42f60257dec7dd18836e # v1.2.1
with:
bins: cargo-nextest
cache-base: main
- name: Run tests on ${{ matrix.os }}
run: cargo nextest run --workspace --verbose
- name: Clean cache
run: cargo cache --autoclean
run: cargo test --workspace
coverage:
name: Test262 Coverage
@ -105,7 +101,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [ windows-latest, ubuntu-latest ]
steps:
# ref: https://github.com/orgs/community/discussions/26952
- name: Support longpaths

View file

@ -92,12 +92,9 @@ jobs:
- name: Install toolchain
uses: moonrepo/setup-rust@e013866c4215f77c925f42f60257dec7dd18836e # v1.2.1
with:
bins: cargo-nextest
cache-base: main
- name: Run tests
run: cargo nextest run --workspace --verbose
- name: Run doctests
run: cargo test --doc
run: cargo test --workspace
test-node-api:
name: Test node.js API

View file

@ -93,7 +93,6 @@ just install-tools
This command will install:
- `cargo-binstall`, to install binary extensions for `cargo`.
- `cargo-insta`, a `cargo` extension to manage snapshot testing inside the repository.
- `cargo-nextest`, a `cargo` extension to for optionally running tests faster.
- `taplo-cli`, a small tool for formatting TOML files.
- `wasm-pack` and `wasm-tools` for managing the WASM build of Biome.

View file

@ -11,12 +11,12 @@ alias qt := test-quick
# Installs the tools needed to develop
install-tools:
cargo install cargo-binstall
cargo binstall cargo-insta cargo-nextest taplo-cli wasm-pack wasm-tools knope
cargo binstall cargo-insta taplo-cli wasm-pack wasm-tools knope
# Upgrades the tools needed to develop
upgrade-tools:
cargo install cargo-binstall --force
cargo binstall cargo-insta cargo-nextest taplo-cli wasm-pack wasm-tools knope --force
cargo binstall cargo-insta taplo-cli wasm-pack wasm-tools knope --force
# Generate all files across crates and tools. You rarely want to use it locally.
gen-all:
@ -109,11 +109,11 @@ _touch file:
# Run tests of all crates
test:
cargo nextest run --no-fail-fast
cargo test run --no-fail-fast
# Run tests for the crate passed as argument e.g. just test-create biome_cli
test-crate name:
cargo nextest run -E 'package({{name}})' --no-fail-fast
cargo test run -p {{name}} --no-fail-fast
# Run doc tests
test-doc: