feat: add CI tests, floating major tag, drop dead create-config #4

Merged
David merged 1 commit from feat/marketplace-tests-cleanup into main 2026-06-14 01:09:02 +02:00
Owner

Address the follow-up items from the Marketplace prep review.

Adds a test framework. .forgejo/workflows/test.yml runs a matrix over pinned Nushell versions (0.100.0, 0.101.0) and latest, installs each through the action (uses: ./ so the current checkout is exercised), and runs tests/assert-version.nu to assert that the installed binary matches both the requested version and the action's nushell-version output. fail-fast is off so one bad version does not mask the rest. The assertion logic lives in a standalone nu script so it is reusable and parses under nu-check.

Adds floating major tag handling to the create-release recipe. After pushing the immutable vX.Y.Z tag it repoints a floating vX tag to the same release so consumers can pin to the major line, for example uses: .../action-install-nushell@v0. The tag is reused across releases, so --force is used to update and push it (authorized for this recipe).

Removes the dead create-config feature. The input was declared in action.yml but never passed into the step env as CREATE_CONFIG, so the install script's branch for it could never run. Removed the input, the unreachable script branch, and the README bullet so nothing references it.

Address the follow-up items from the Marketplace prep review. Adds a test framework. .forgejo/workflows/test.yml runs a matrix over pinned Nushell versions (0.100.0, 0.101.0) and latest, installs each through the action (uses: ./ so the current checkout is exercised), and runs tests/assert-version.nu to assert that the installed binary matches both the requested version and the action's nushell-version output. fail-fast is off so one bad version does not mask the rest. The assertion logic lives in a standalone nu script so it is reusable and parses under nu-check. Adds floating major tag handling to the create-release recipe. After pushing the immutable vX.Y.Z tag it repoints a floating vX tag to the same release so consumers can pin to the major line, for example uses: .../action-install-nushell@v0. The tag is reused across releases, so --force is used to update and push it (authorized for this recipe). Removes the dead create-config feature. The input was declared in action.yml but never passed into the step env as CREATE_CONFIG, so the install script's branch for it could never run. Removed the input, the unreachable script branch, and the README bullet so nothing references it.
feat: add CI tests, floating major tag, drop dead create-config
All checks were successful
Test / Install Nushell 0.100.0 (push) Successful in 17s
Test / Install Nushell 0.101.0 (push) Successful in 19s
Test / Install Nushell 0.101.0 (pull_request) Successful in 11s
Test / Install Nushell 0.100.0 (pull_request) Successful in 12s
Test / Install Nushell latest (push) Successful in 23s
Test / Install Nushell latest (pull_request) Successful in 27s
c5b5739070
Add a .forgejo/workflows/test.yml matrix that installs Nushell across pinned versions and latest, then runs tests/assert-version.nu to assert the installed binary matches both the requested version and the action's nushell-version output. The action under test is referenced as `uses: ./` so the workflow exercises the current checkout.

Move a floating major tag (vX) in the create-release recipe so consumers can pin to the major line (for example @v0). The tag is repointed on every release, so --force is used to update and push it.

Remove the create-config feature. The input was declared in action.yml but never passed into the step env, so the script's CREATE_CONFIG branch could never run. Drop the input, the dead script branch, and the README bullet.
David merged commit c33e3a56ac into main 2026-06-14 01:09:02 +02:00
David deleted branch feat/marketplace-tests-cleanup 2026-06-14 01:09:02 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pandoras-box/action-install-nushell!4
No description provided.