From 2288ef530df821c1a4b06b64541bb1afb4ee0eb8 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 30 Jan 2024 19:02:44 +0100 Subject: [PATCH 1/4] test.yml (GBA): Add macos-14 for get build with Apple Silicon M1 (ARM) --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0d25367..11c5f9a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,7 +16,7 @@ jobs: tests: strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, macos-latest, macos-14 windows-latest] runs-on: ${{ matrix.os }} steps: - name: Set up Go From 3dc1e639389fe7890cbc75b5beedca9570e15ce1 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 30 Jan 2024 19:03:18 +0100 Subject: [PATCH 2/4] test.yml(gba): Update checkout to v4 --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 11c5f9a..e35985e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,7 +25,7 @@ jobs: go-version: 1.21.4 - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run Golang Tests run: go test -v ./... From 16690b8ffdf39eee2f3272a552430cfda42abe70 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 30 Jan 2024 19:03:54 +0100 Subject: [PATCH 3/4] Update tests.yml: fix typo --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e35985e..ad33695 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,7 +16,7 @@ jobs: tests: strategy: matrix: - os: [ubuntu-latest, macos-latest, macos-14 windows-latest] + os: [ubuntu-latest, macos-latest, macos-14, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Set up Go From fe9136b8f80b5367767d129480b4c4f625a62628 Mon Sep 17 00:00:00 2001 From: Matt <48867283+laidbackware@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:21:42 +0000 Subject: [PATCH 4/4] split out tests suspect customer connect blocking --- .github/workflows/tests.yml | 39 +++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ad33695..9dd5c79 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,10 +13,45 @@ env: GOPROXY: direct jobs: - tests: + # Breaking tests into 2 phases, to prevent account lock out due to DOS protection + tests-1: strategy: matrix: - os: [ubuntu-latest, macos-latest, macos-14, windows-latest] + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.21.4 + + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Run Golang Tests + run: go test -v ./... + + - name: Setup BATS + if: runner.os != 'windows' + run: | + set -e + + if [ -n "$GITHUB_RUN_ID" ]; then + export GITHUB_API_TOKEN="${{ secrets.GITHUB_TOKEN }}" + fi + + git clone https://github.com/bats-core/bats-core.git && bats-core/install.sh $HOME + + - name: Run BATS Tests + if: runner.os != 'windows' + run: | + export PATH=${PATH}:/home/runner/bin + # Retry hack to attempt test 3 times + bats test/bats + tests-2: + strategy: + matrix: + os: [macos-14, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Set up Go