diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f1eb8c287..3567b1c89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,9 +56,6 @@ jobs: go-version: '1.21' cache: true - - name: Update Go modules - run: go mod download -json - - name: Build CLI run: make build env: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e2db7bba7..b475320e7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -102,9 +102,6 @@ jobs: go-version: '1.21' cache: true - - name: Update Go modules - run: go mod download -json - - name: Write coverage profile run: go test -v ./... -coverprofile=./coverage.txt -covermode=atomic -coverpkg=./pkg...,./cli/... @@ -120,7 +117,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, windows-2022, macos-12] + os: [ubuntu-20.04, windows-2022, macos-12, macos-14] go_versions: [ '1.19', '1.20', '1.21' ] exclude: # Only latest Go version for Windows and MacOS. @@ -132,6 +129,10 @@ jobs: go_versions: '1.19' - os: macos-12 go_versions: '1.20' + - os: macos-14 + go_versions: '1.19' + - os: macos-14 + go_versions: '1.20' # Exclude latest Go version for Ubuntu as Coverage uses it. - os: ubuntu-20.04 go_versions: '1.21' @@ -148,8 +149,5 @@ jobs: go-version: '${{ matrix.go_versions }}' cache: true - - name: Update Go modules - run: go mod download -json - - name: Run tests run: go test -v -race ./...