feat: add CI tests, floating major tag, drop dead create-config #4
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/marketplace-tests-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.