mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-15 06:10:32 +00:00
feat: support windows (#122)
This commit is contained in:
parent
bd6a003a27
commit
5d3e058edf
20 changed files with 3835 additions and 3537 deletions
17
scripts/test.sh
Executable file
17
scripts/test.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
function assert_equal() {
|
||||
if [ "$1" != "$2" ]; then
|
||||
echo "Assertion failed: Expected '$1', got '$2'" >&2
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
assert_equal "v22.0.0" "$(mise exec -- node --version)"
|
||||
which node
|
||||
|
||||
# windows bash does not seem to work with shims
|
||||
if [[ "$(uname)" != "MINGW"* ]]; then
|
||||
assert_equal "v22.0.0" "$(node --version)"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue