nu_scripts/.github/workflows/ci.yml
Texas Toland 878bfc615c
Refactor toolkit.nu (#791)
Closes #789 🍻

- Runs without first generating a script
- Returns error (file) count
- Requires `--and-exit` to exit with error code
- Enables alternative report with env `STUB_IDE_CHECK=true`
- Expands documentation
- All subcommands share same file querying
- Prepares for nupm test integration
2024-03-15 19:17:31 +02:00

28 lines
766 B
YAML

on:
pull_request:
env:
NUSHELL_CARGO_PROFILE: ci
NU_LOG_LEVEL: DEBUG
jobs:
nu-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Fetch main branch"
run: |
git fetch origin main --depth 1
- uses: hustcer/setup-nu@v3.9
with:
version: "*"
check-latest: true
features: full # dataframe and extra included
- name: toolkit check pr
shell: nu {0}
# nix STUB_IDE_CHECK when nushell/nushell#12208 fixed
run: |
use ${{ github.workspace }}/toolkit.nu *
STUB_IDE_CHECK=true check pr --and-exit