From b3e41ec4c022d986aa5453c2396bf486e257dabd Mon Sep 17 00:00:00 2001 From: Faye Amacker <33205765+fxamacker@users.noreply.github.com> Date: Sat, 2 Dec 2023 14:45:38 -0600 Subject: [PATCH] Update CI to increase timeout While at it, also reduce matrix of OS and Go versions given the duration of tests. --- .github/workflows/ci.yml | 6 +++--- .github/workflows/coverage.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db59c4ee..fcab7c8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,8 +30,8 @@ jobs: strategy: matrix: - os: [macos-latest, ubuntu-latest] - go-version: [1.17, 1.18, 1.19] + os: [ubuntu-latest] + go-version: ['1.20', 1.21] steps: - name: Install Go @@ -54,4 +54,4 @@ jobs: - name: Run tests run: | go version - go test -timeout 60m -race -v ./... + go test -timeout 180m -race -v ./... diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 1fe10561..88b4907a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -32,7 +32,7 @@ jobs: run: go build ./... - name: Generate coverage report - run: go test -timeout 60m -race -coverprofile=coverage.txt -covermode=atomic + run: go test -timeout 180m -race -coverprofile=coverage.txt -covermode=atomic - name: Upload coverage report to Codecov uses: codecov/codecov-action@v3.1.4