mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
ci: add latest OSs to testing matrix, bump BATS, shfmt, shellcheck (#1260)
* ci: add latest OSs to testing matrix * ci: bump bats & shellcheck & shfmt * chore: format with latest shfmt
This commit is contained in:
parent
b1842b1b8e
commit
21bc411915
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@ -7,7 +7,7 @@ on:
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
BATS_VERSION: v1.3.0
|
||||
BATS_VERSION: v1.7.0
|
||||
|
||||
jobs:
|
||||
nix:
|
||||
@ -16,9 +16,11 @@ jobs:
|
||||
matrix:
|
||||
os:
|
||||
- macos-10.15
|
||||
# - macos-11 - enable once out of private preview: https://github.com/actions/virtual-environments#available-environments
|
||||
- macos-11
|
||||
- macos-12
|
||||
- ubuntu-18.04
|
||||
- ubuntu-20.04
|
||||
- ubuntu-22.04
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
@ -1,3 +1,3 @@
|
||||
bats 1.3.0
|
||||
shellcheck 0.7.2
|
||||
shfmt 3.3.0
|
||||
bats 1.7.0
|
||||
shellcheck 0.8.0
|
||||
shfmt 3.5.1
|
||||
|
@ -81,4 +81,3 @@ cleaned_path() {
|
||||
output=$(echo "$result" | grep "ASDF INSTALLED PLUGINS:")
|
||||
[ "$output" != "" ]
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,8 @@ teardown() {
|
||||
|
||||
run asdf help "dummy"
|
||||
|
||||
expected_output="$(cat <<EOF
|
||||
expected_output="$(
|
||||
cat <<EOF
|
||||
Dummy plugin documentation
|
||||
|
||||
Dummy plugin is a plugin only used for unit tests
|
||||
@ -37,7 +38,8 @@ EOF
|
||||
|
||||
run asdf help "dummy" "1.2.3"
|
||||
|
||||
expected_output="$(cat <<EOF
|
||||
expected_output="$(
|
||||
cat <<EOF
|
||||
Dummy plugin documentation
|
||||
|
||||
Dummy plugin is a plugin only used for unit tests
|
||||
|
@ -16,7 +16,6 @@ teardown() {
|
||||
[ "$status" -eq 0 ]
|
||||
[ -d "$ASDF_DIR/downloads/dummy" ]
|
||||
|
||||
|
||||
run asdf plugin-remove "dummy"
|
||||
[ "$status" -eq 0 ]
|
||||
[ ! -d "$ASDF_DIR/downloads/dummy" ]
|
||||
|
@ -14,7 +14,6 @@ teardown() {
|
||||
clean_asdf_dir
|
||||
}
|
||||
|
||||
|
||||
@test "reshim should allow prefixes of other versions" {
|
||||
run asdf install dummy 1.0.1
|
||||
run asdf install dummy 1.0
|
||||
|
@ -33,7 +33,6 @@ teardown() {
|
||||
[ "$output" == "$ASDF_DIR/installs/dummy/1.0/bin/dummy" ]
|
||||
}
|
||||
|
||||
|
||||
@test "asdf env should execute under plugin custom environment used for a shim" {
|
||||
echo "dummy 1.0" >$PROJECT_DIR/.tool-versions
|
||||
run asdf install
|
||||
|
@ -417,7 +417,8 @@ ruby 2.0.0 # inline comment
|
||||
# comment line
|
||||
erlang 18.2.1 # inline comment
|
||||
EOF
|
||||
expected="$(cat <<EOF
|
||||
expected="$(
|
||||
cat <<EOF
|
||||
ruby 2.0.0
|
||||
erlang 18.2.1
|
||||
EOF
|
||||
|
@ -268,7 +268,6 @@ teardown() {
|
||||
unset ASDF_DEFAULT_TOOL_VERSIONS_FILENAME
|
||||
}
|
||||
|
||||
|
||||
@test "global should write to ASDF_DEFAULT_TOOL_VERSIONS_FILENAME" {
|
||||
export ASDF_DEFAULT_TOOL_VERSIONS_FILENAME="global-tool-versions"
|
||||
run asdf global "dummy" "1.1.0"
|
||||
|
Loading…
Reference in New Issue
Block a user