1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00
Commit graph

4 commits

Author SHA1 Message Date
Douglas
c17dcc3855
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.
2025-02-17 09:14:30 -05:00
Darren Schroeder
a921551619
features = full isn't a thing anymore 2024-06-01 04:41:31 -05:00
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
Auca Coyan
c2ef662e48
add a nu-check verification CI (#771)
I made a `toolkit.nu` with a very bare bones struct, this is called via
[`setup-nu`](https://github.com/hustcer/setup-nu) action, and generates
the `check-files.nu` file. After that, another nu instance run that
script to check files one by one. The folder `before_v0.60/` is
excluded.
2024-03-12 20:48:08 +01:00