Skip to content

Commit

Permalink
Pass long flags in toolkit for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
texastoland committed Mar 14, 2024
1 parent b0ac04e commit 76a7752
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
- name: toolkit check pr
shell: nu {0}
run: |
nu -c 'use toolkit.nu *; check pr --and-exit'
nu --commands 'use toolkit.nu *; check pr --and-exit'
22 changes: 9 additions & 13 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
on:
push:
branches:
branches:
- main
schedule:
- cron: '30 0 * * *' # every day at 00:30 AM UTC
- cron: "30 0 * * *" # every day at 00:30 AM UTC

env:
NUSHELL_CARGO_PROFILE: ci
Expand All @@ -15,19 +15,15 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: 'Fetch main branch'
- name: "Fetch main branch"
run: |
git fetch origin main --depth 1
git fetch origin main --depth 1
- uses: hustcer/[email protected]
with:
version: '*'
check-latest: true
features: full # dataframe and extra included
- name: toolkit generate-file-list --full
version: "*"
check-latest: true
features: full # dataframe and extra included
- name: toolkit check pr --full
shell: nu {0}
run: |
nu -c "use toolkit.nu *; generate-file-list --full"
- name: run nu-check on all files
shell: nu {0}
run: |
nu ./check-files.nu
nu --commands 'use toolkit.nu *; check pr --full --and-exit'
2 changes: 1 addition & 1 deletion toolkit.nu
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export def "lint ide-check" []: path -> int {
let file = $in
let stub = $env.STUB_IDE_CHECK? | default false | into bool
let diagnostics = if $stub {
do { nu -n -c $"use '($file)'" }
do { nu --no-config-file --commands $"use '($file)'" }
| complete
| [[severity message]; [$in.exit_code $in.stderr]]
| where severity != 0
Expand Down

0 comments on commit 76a7752

Please sign in to comment.