Skip to content

Commit

Permalink
Fix tests run by Github Action and update the testing matrix (#654)
Browse files Browse the repository at this point in the history
* Update GA to test against Go 1.17

* Update GA to test against Go 1.17

* Update GA to test against macOS 11

* Update GA to get rid of Ubuntu 16.04 since it's no longer supported

* Update GA to have different Xcode versions for macOS 10 and macOS 11

* Update GA to have different Xcode versions for macOS 10 and macOS 11

* Update GA to have different Xcode versions for macOS 10 and macOS 11

* Clean up
  • Loading branch information
wyk9787 authored Sep 29, 2021
1 parent 02619b8 commit 86a2bdb
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,28 @@ jobs:
strategy:
fail-fast: false
matrix:
go: ['1.15', '1.16', 'tip']
go: ['1.16', '1.17', 'tip']
# Supported macOS versions can be found in
# https://github.com/actions/virtual-environments#available-environments.
os: ['macos-10.15']
# Supported Xcode versions can be found in
os: ['macos-10.15', 'macos-11']
# Supported Xcode versions for macOS 10.15 can be found in
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xcode.
xcode-version: ['12.4', '12.3', '12.2', '12.1.1', '12.0.1', '11.7']
# Supported Xcode versions for macOS 11 can be found in
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md#xcode
xcode-version: ['13.0', '12.5', '12.4', '12.3', '12.1.1', '12.0.1', '11.7']
exclude:
- os: 'macos-10.15'
xcode-version: '13.0'
- os: 'macos-10.15'
xcode-version: '12.5'
- os: 'macos-11'
xcode-version: '12.4'
- os: 'macos-11'
xcode-version: '12.3'
- os: 'macos-11'
xcode-version: '12.1.1'
- os: 'macos-11'
xcode-version: '12.0.1'
steps:
- name: Update Go version using setup-go
uses: actions/setup-go@v2
Expand Down Expand Up @@ -56,7 +71,9 @@ jobs:
run: |
brew install graphviz
# Do not let tools interfere with the main module's go.mod.
cd && go get -u golang.org/x/lint/golint honnef.co/go/tools/cmd/...
cd && go mod init tools
go get -u golang.org/x/lint/golint honnef.co/go/tools/cmd/...
go install golang.org/x/lint/golint honnef.co/go/tools/cmd/...
# Add PATH for installed tools.
echo "$GOPATH/bin:$PATH" >> $GITHUB_PATH
Expand Down Expand Up @@ -88,8 +105,8 @@ jobs:
strategy:
fail-fast: false
matrix:
go: ['1.15', '1.16', 'tip']
os: ['ubuntu-20.04', 'ubuntu-18.04', 'ubuntu-16.04']
go: ['1.16', '1.17', 'tip']
os: ['ubuntu-20.04', 'ubuntu-18.04']
steps:
- name: Update Go version using setup-go
uses: actions/setup-go@v2
Expand All @@ -116,7 +133,9 @@ jobs:
run: |
sudo apt-get install graphviz
# Do not let tools interfere with the main module's go.mod.
cd && go get -u golang.org/x/lint/golint honnef.co/go/tools/cmd/...
cd && go mod init tools
go get -u golang.org/x/lint/golint honnef.co/go/tools/cmd/...
go install golang.org/x/lint/golint honnef.co/go/tools/cmd/...
# Add PATH for installed tools.
echo "PATH=$GOPATH/bin:$PATH" >> $GITHUB_ENV
Expand Down Expand Up @@ -145,7 +164,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go: ['1.15', '1.16']
go: ['1.16', '1.17']
steps:
- name: Update Go version using setup-go
uses: actions/setup-go@v2
Expand Down

0 comments on commit 86a2bdb

Please sign in to comment.