Skip to content

Commit

Permalink
bump Go versions used in CI to 1.19, 1.20, 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
alexflint committed Jan 11, 2024
1 parent 6a69275 commit e304fe1
Showing 1 changed file with 3 additions and 47 deletions.
50 changes: 3 additions & 47 deletions .github/workflows/go.yml
Expand Up @@ -7,58 +7,14 @@ on:
branches: [ master ]

jobs:

# Unfortunately there is much duplication below. I have not found a
# way to set "runs-on" to an array, so instead I duplicated the
# whole thing three times.

linux_build_and_test:
name: Build and test (Linux)
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
go: ['1.13', '1.14', '1.15', '1.16']
steps:
- id: go
name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: go build -v .
- name: Test
run: go test -v .

windows_build_and_test:
name: Build and test (Windows)
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
go: ['1.13', '1.14', '1.15', '1.16']
steps:
- id: go
name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: go build -v .
- name: Test
run: go test -v .

macos_build_and_test:
name: Build and test (macOS)
runs-on: macos-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go: ['1.13', '1.14', '1.15', '1.16']
go: ['1.19', '1.20', '1.21']
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
steps:
- id: go
name: Set up Go
Expand Down

0 comments on commit e304fe1

Please sign in to comment.