From 1b7497c41966306aa3103a95a9b5ef5df7111ee4 Mon Sep 17 00:00:00 2001 From: amtoine Date: Sun, 19 Mar 2023 09:25:54 +0100 Subject: [PATCH] add a clone of `nu-tests` to run the standard library tests --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2fd514ca9..d0bea28c5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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