From 5102576c881f67ef015f53b629aced97dc70eae2 Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Tue, 3 Dec 2024 14:58:07 -0500 Subject: [PATCH 1/3] chore: Use larger runners for CI --- .github/workflows/release.yml | 3 ++- .github/workflows/validate.yml | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e69d24d..c596722d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,8 @@ permissions: jobs: release: name: Release - runs-on: windows-latest-16-cores + runs-on: + group: windows-latest-large steps: - name: Setup environment run: |- diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index cdd9449e..fe151ef3 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -30,7 +30,8 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - runs-on: ${{ matrix.os }} + runs-on: + group: "${{ matrix.os }}-large" steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -69,7 +70,6 @@ jobs: - name: Build run: go build ./... - - name: ${{ matrix.test-group }} - run: go test -json -v -p 1 ./... | gotestfmt + - run: go test -json -v -p 1 ./... | gotestfmt env: SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }} From 9d5a7d121c0bb84905944537032b50fabe6e0494 Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Tue, 3 Dec 2024 16:46:04 -0500 Subject: [PATCH 2/3] chore: Disable setup-go cache on Windows jobs Reference: https://github.com/actions/setup-go/issues/495 Previously, it could take up to 10 minutes to download and unarchive the cache on Windows runners. --- .github/workflows/release.yml | 2 ++ .github/workflows/validate.yml | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c596722d..285c9330 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,8 @@ jobs: - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: "go.mod" + # Reference: https://github.com/actions/setup-go/issues/495 + cache: false # More assembly might be required: Docker logins, GPG, etc. It all depends # on your needs. - name: Configure git for private modules diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index fe151ef3..2815ccc0 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -36,10 +36,19 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Set up Go + - name: Set up Go (Linux) + if: runner.os == 'Linux' + uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 + with: + go-version-file: "go.mod" + + - name: Set up Go (Windows) + if: runner.os == 'Windows' uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: "go.mod" + # Reference: https://github.com/actions/setup-go/issues/495 + cache: false - name: Set up Python uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 From 91f752e943d47e8abddcd950a3ff9aa0d0950af1 Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Tue, 3 Dec 2024 17:09:56 -0500 Subject: [PATCH 3/3] chore: Skip CI on pull_request edited --- .github/workflows/validate.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 2815ccc0..7c0099f9 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -2,11 +2,6 @@ name: Validate on: pull_request: - types: - - opened - - reopened - - edited - - synchronize jobs: build: