mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
Fix failing lints on source files (#1049)
This PR updates the toolkit testing to: * Determine whether to lint as a module or source file based on the presence of any `export ` line in the file. * Run `nu-check` on files before linting with `use <file>` or `source <file>` * Updates the environment variable to `TEST_METHOD` with options for `ide-check` or `import-or-source`. * Updates the default to `import-or-source` (was `ide-check`) to match CI * Removes environment variable from CI since this test method is now the default. With this in place we should have far fewer (false positive) failing CI runs.
This commit is contained in:
parent
446f06f34f
commit
c17dcc3855
2 changed files with 33 additions and 12 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -24,4 +24,4 @@ jobs:
|
|||
# nix STUB_IDE_CHECK when nushell/nushell#12208 fixed
|
||||
run: |
|
||||
use ${{ github.workspace }}/toolkit.nu *
|
||||
STUB_IDE_CHECK=true check pr --and-exit
|
||||
check pr --and-exit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue