add a clone of nu-tests to run the standard library tests

This commit is contained in:
amtoine 2023-03-19 09:25:54 +01:00
parent 9c12211564
commit 1b7497c419
No known key found for this signature in database
GPG Key ID: 37AAE9B486CFF1AB

View File

@ -194,3 +194,40 @@ jobs:
uses: codecov/codecov-action@v3
with:
files: lcov.info
std-tests:
env:
NUSHELL_CARGO_TARGET: ci
strategy:
fail-fast: true
matrix:
platform: [windows-latest, macos-latest, ubuntu-20.04]
style: [default, dataframe]
rust:
- stable
include:
- style: default
flags: ""
- style: dataframe
flags: "--features=dataframe"
exclude:
# only test dataframes on Ubuntu (the fastest platform)
- platform: windows-latest
style: dataframe
- platform: macos-latest
style: dataframe
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1.4.3
- name: Install nushell
run: cargo install --path . ${{ matrix.flags }}
- name: Standard library tests
run: NU_LOG_LEVEL=DEBUG nu crates/nu-utils/standard_library/tests.nu