Merge pull request #3330 from nspcc-dev/add-macos

Add ARM-based MacOS tests
This commit is contained in:
Anna Shaleva 2024-02-28 12:39:17 +03:00 committed by GitHub
commit 6a560b9a95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 10 deletions

View file

@ -56,9 +56,6 @@ jobs:
go-version: '1.21' go-version: '1.21'
cache: true cache: true
- name: Update Go modules
run: go mod download -json
- name: Build CLI - name: Build CLI
run: make build run: make build
env: env:

View file

@ -102,9 +102,6 @@ jobs:
go-version: '1.21' go-version: '1.21'
cache: true cache: true
- name: Update Go modules
run: go mod download -json
- name: Write coverage profile - name: Write coverage profile
run: go test -v ./... -coverprofile=./coverage.txt -covermode=atomic -coverpkg=./pkg...,./cli/... run: go test -v ./... -coverprofile=./coverage.txt -covermode=atomic -coverpkg=./pkg...,./cli/...
@ -120,7 +117,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: 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' ] go_versions: [ '1.19', '1.20', '1.21' ]
exclude: exclude:
# Only latest Go version for Windows and MacOS. # Only latest Go version for Windows and MacOS.
@ -132,6 +129,10 @@ jobs:
go_versions: '1.19' go_versions: '1.19'
- os: macos-12 - os: macos-12
go_versions: '1.20' 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. # Exclude latest Go version for Ubuntu as Coverage uses it.
- os: ubuntu-20.04 - os: ubuntu-20.04
go_versions: '1.21' go_versions: '1.21'
@ -148,8 +149,5 @@ jobs:
go-version: '${{ matrix.go_versions }}' go-version: '${{ matrix.go_versions }}'
cache: true cache: true
- name: Update Go modules
run: go mod download -json
- name: Run tests - name: Run tests
run: go test -v -race ./... run: go test -v -race ./...