forked from nushell/nu_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes nushell#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
- Loading branch information
1 parent
191636a
commit 878bfc6
Showing
3 changed files
with
106 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
on: | ||
pull_request: | ||
pull_request: | ||
|
||
env: | ||
NUSHELL_CARGO_PROFILE: ci | ||
|
@@ -11,19 +11,17 @@ 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 | ||
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: | | ||
nu -c "use toolkit.nu *; check pr" | ||
- name: run nu-check on modified files | ||
shell: nu {0} | ||
run: | | ||
nu ./check-files.nu | ||
use ${{ github.workspace }}/toolkit.nu * | ||
STUB_IDE_CHECK=true check pr --and-exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -15,19 +15,17 @@ 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} | ||
# nix STUB_IDE_CHECK when nushell/nushell#12208 fixed | ||
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 | ||
use ${{ github.workspace }}/toolkit.nu * | ||
STUB_IDE_CHECK=true check pr --full --and-exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters