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:
James Hegedus 2022-06-24 19:20:27 +10:00 committed by GitHub
parent b1842b1b8e
commit 21bc411915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 195 additions and 195 deletions

View File

@ -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

View File

@ -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

View File

@ -81,4 +81,3 @@ cleaned_path() {
output=$(echo "$result" | grep "ASDF INSTALLED PLUGINS:")
[ "$output" != "" ]
}

View File

@ -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

View File

@ -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" ]

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"