diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d1f91843..fd1b164e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,3 +36,18 @@ jobs: - name: Install Rust run: rustup update stable && rustup default stable && rustup component add rustfmt - run: cargo fmt -- --check + + check: + name: Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: hustcer/setup-nu@v2.1 + with: + check-latest: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: | + echo "Nushell version: $(nu -c '(version).version')" + for i in tests/snapshots/*.nu; do nu -c "print -n $'(ansi green)Checking $i ...'; ansi reset; source $i"; done + shell: bash