From 09de6320408cc775174f76d2f02a05acd07df1b7 Mon Sep 17 00:00:00 2001 From: Jerry Lee Date: Fri, 23 Aug 2024 20:01:05 +0800 Subject: [PATCH] WIP --- .github/workflows/ci.yaml | 4 +++- test/my_unit_test_lib.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6900a53e..876c0d44 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,7 +11,9 @@ jobs: timeout-minutes: 5 strategy: matrix: - os: [ ubuntu-latest, macos-11, macos-latest ] + # the OS supported by GitHub Actions + # https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositoriesvv + os: [ ubuntu-latest, macos-12, macos-latest ] fail-fast: false max-parallel: 64 name: Test on ${{ matrix.os }} diff --git a/test/my_unit_test_lib.sh b/test/my_unit_test_lib.sh index df2cc668..8dcdfd63 100644 --- a/test/my_unit_test_lib.sh +++ b/test/my_unit_test_lib.sh @@ -50,7 +50,7 @@ die() { assertArrayEquals() { (($# == 2 || $# == 3)) || die "assertArrayEquals must 2 or 3 arguments!" - local failMsg="" + local failMsg= (($# == 3)) && { failMsg=$1 shift