ci: update CI to check nushell scripts

This commit is contained in:
nibon7 2022-11-01 13:18:05 +08:00
parent fd89b0eb46
commit 90555c39c5
No known key found for this signature in database
GPG key ID: 281CE465D8EEC03B

View file

@ -36,3 +36,18 @@ jobs:
- name: Install Rust - name: Install Rust
run: rustup update stable && rustup default stable && rustup component add rustfmt run: rustup update stable && rustup default stable && rustup component add rustfmt
- run: cargo fmt -- --check - 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