diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 290ca9187..99bb08209 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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' diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 366cc6b6c..9c1911e60 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -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 @@ -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/setup-nu@v3.9 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' diff --git a/toolkit.nu b/toolkit.nu index 0edbd497f..a24445ae7 100644 --- a/toolkit.nu +++ b/toolkit.nu @@ -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