From 5cd778d6b672c6c16e2af1f2cc47736768271882 Mon Sep 17 00:00:00 2001 From: amtoine Date: Sat, 26 Aug 2023 13:03:01 +0200 Subject: [PATCH] add a `default-config` CI job --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 02497b6..4a9e638 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,3 +40,28 @@ jobs: rustflags: "" - run: make test + + default-config: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v3 + + - name: Setup Rust toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 + with: + rustflags: "" + + - name: Install Nushell + uses: hustcer/setup-nu@main + with: + version: '*' + + - name: Install nu_plugin_explore + run: make build register + + - name: Test the default config + run: | + $env.config.plugins.explore = (open examples/config/default.nuon) + $nu | nu_plugin_explore + shell: nu {0}