mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
ci: update CI to check nushell scripts
This commit is contained in:
parent
fd89b0eb46
commit
90555c39c5
1 changed files with 15 additions and 0 deletions
15
.github/workflows/ci.yaml
vendored
15
.github/workflows/ci.yaml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue