diff --git a/.github/workflows/test-local-action.yaml b/.github/workflows/test-local-action.yaml index caab797..6e226a1 100644 --- a/.github/workflows/test-local-action.yaml +++ b/.github/workflows/test-local-action.yaml @@ -14,7 +14,8 @@ jobs: fail-fast: false matrix: version: ["1.7.0", "1.8.2", "1.9.0", "1.10.0", "1.11.0", "latest"] - runs-on: ubuntu-latest + os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-latest ] + runs-on: ${{ matrix.os }} env: BATS_LIB_PATH: "/usr/lib" TERM: xterm @@ -59,7 +60,8 @@ jobs: fail-fast: false matrix: version: ["1.7.0", "1.8.2", "1.9.0", "1.10.0", "1.11.0", "latest"] - runs-on: ubuntu-latest + os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-latest ] + runs-on: ${{ matrix.os }} env: BATS_LIB_PATH: "/usr/lib" TERM: xterm diff --git a/action.yaml b/action.yaml index fb3126a..c6831b6 100644 --- a/action.yaml +++ b/action.yaml @@ -132,14 +132,14 @@ runs: # From https://github.com/fluxcd/flux2/blob/44d69d6fc0c353e79c1bad021a4aca135033bce8/action/action.yml#L35 if [[ -z "$VERSION" ]] || [[ "$VERSION" = "latest" ]]; then - VERSION=$(curl -fsSL --retry 2 --retry-all-errors https://api.github.com/repos/bats-core/bats-core/releases/latest | grep tag_name | cut -d '"' -f 4) + VERSION=$(curl -fsSL --retry 4 --retry-connrefused https://api.github.com/repos/bats-core/bats-core/releases/latest | grep tag_name | cut -d '"' -f 4) fi [[ $VERSION = v* ]] && VERSION="${VERSION:1}" mkdir -p ${TEMPDIR} mkdir -p ${DESTDIR} - curl -sL --retry 2 --retry-all-errors ${URL}/archive/refs/tags/v${VERSION}.tar.gz | tar xz -C ${TEMPDIR} --strip-components 1 && cd ${TEMPDIR} + curl -sL --retry 4 --retry-connrefused ${URL}/archive/refs/tags/v${VERSION}.tar.gz | tar xz -C ${TEMPDIR} --strip-components 1 && cd ${TEMPDIR} # Install ./install.sh ${DESTDIR} @@ -170,7 +170,7 @@ runs: mkdir -p ${TEMPDIR} [[ "${DESTDIR}" == "$HOME"* ]] && CMD="" || CMD="sudo" ${CMD} mkdir -p ${DESTDIR}/src/ - curl -sL --retry 2 --retry-all-errors ${url} | tar xz -C ${TEMPDIR} --strip-components 1 && cd ${TEMPDIR} + curl -sL --retry 4 --retry-connrefused ${url} | tar xz -C ${TEMPDIR} --strip-components 1 && cd ${TEMPDIR} # Archlinux style, except that we are not in a fakeroot env ${CMD} install -Dm755 load.bash ${DESTDIR}/load.bash for fn in src/*.bash; do @@ -203,7 +203,7 @@ runs: mkdir -p ${TEMPDIR} [[ "${DESTDIR}" == "$HOME"* ]] && CMD="" || CMD="sudo" ${CMD} mkdir -p ${DESTDIR}/src/ - curl -sL --retry 2 --retry-all-errors ${url} | tar xz -C ${TEMPDIR} --strip-components 1 && cd ${TEMPDIR} + curl -sL --retry 4 --retry-connrefused ${url} | tar xz -C ${TEMPDIR} --strip-components 1 && cd ${TEMPDIR} # Archlinux style, except that we are not in a fakeroot env ${CMD} install -Dm755 load.bash ${DESTDIR}/load.bash for fn in src/*.bash; do @@ -236,7 +236,7 @@ runs: mkdir -p ${TEMPDIR} [[ "${DESTDIR}" == "$HOME"* ]] && CMD="" || CMD="sudo" ${CMD} mkdir -p ${DESTDIR}/src/ - curl -sL --retry 2 --retry-all-errors ${url} | tar xz -C ${TEMPDIR} --strip-components 1 && cd ${TEMPDIR} + curl -sL --retry 4 --retry-connrefused ${url} | tar xz -C ${TEMPDIR} --strip-components 1 && cd ${TEMPDIR} # Archlinux style, except that we are not in a fakeroot env so we need to use sudo for fn in lib/*.bash; do ${CMD} install -Dm755 $fn \ @@ -268,7 +268,7 @@ runs: mkdir -p ${TEMPDIR} [[ "${DESTDIR}" == "$HOME"* ]] && CMD="" || CMD="sudo" ${CMD} mkdir -p ${DESTDIR}/src/ - curl -sL --retry 2 --retry-all-errors ${url} | tar xz -C ${TEMPDIR} --strip-components 1 && cd ${TEMPDIR} + curl -sL --retry 4 --retry-connrefused ${url} | tar xz -C ${TEMPDIR} --strip-components 1 && cd ${TEMPDIR} # Archlinux style, except that we are not in a fakeroot env ${CMD} install -Dm755 load.bash ${DESTDIR}/load.bash for fn in src/*.bash; do