Fix alpine container installation (#189)

* Change test tool for future alpine CI testing

* replace node with jq as it doesnt require any build on alpine

* Fix alpine musl container install

* add tests around mise install in alpine container

* add support for musl os
Fixes: https://github.com/jdx/mise-action/issues/186

* alpine needs bash to run test.sh script

* remove unneeded logs

* Update test.yml

* Update test.yml
This commit is contained in:
Victor LEFEBVRE 2025-05-12 14:15:17 +02:00 committed by GitHub
parent d20b46e041
commit 923c9f44ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 86 additions and 42 deletions

View file

@ -7,11 +7,12 @@ function assert_equal() {
return 1
fi
}
EXPECTED_OUTPUT="jq-1.7.1"
assert_equal "v22.0.0" "$(mise exec -- node --version)"
which node
assert_equal "$EXPECTED_OUTPUT" "$(mise exec -- jq --version)"
which jq
# windows bash does not seem to work with shims
if [[ "$(uname)" != "MINGW"* ]]; then
assert_equal "v22.0.0" "$(node --version)"
assert_equal "$EXPECTED_OUTPUT" "$(jq --version)"
fi