Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
github-ci: add Ubuntu 22.04 runner
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-jukovec committed Jun 29, 2022
1 parent a08a994 commit a67734d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu", "windows", "macos" ]
os: [ "ubuntu-22.04", "ubuntu-latest", "windows-latest", "macos-latest" ]
go: [ "1.17.x", "1.18.x" ]
env:
COVERAGES: ""
Expand All @@ -27,7 +27,7 @@ jobs:
go version
go env
- name: Use msys2 on windows
if: ${{ matrix.os == 'windows' }}
if: startsWith(matrix.os, 'windows')
shell: bash
# The executable for msys2 is also called bash.cmd
# https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#shells
Expand All @@ -45,7 +45,7 @@ jobs:
# this means ./B's coverage will be significantly higher than 0%.
run: go test -v -coverprofile=module-coverage.txt -coverpkg=./... ./...
- name: Run tests (32 bit)
if: ${{ matrix.os != 'macos' }} # can't run 32 bit tests on OSX.
if: startsWith(matrix.os, 'macos') # can't run 32 bit tests on OSX.
uses: protocol/[email protected]
env:
GOARCH: 386
Expand All @@ -54,7 +54,7 @@ jobs:
export "PATH=${{ env.PATH_386 }}:$PATH"
go test -v ./...
- name: Run tests with race detector
if: ${{ matrix.os == 'ubuntu' }} # speed things up. Windows and OSX VMs are slow
if: startsWith(matrix.os, 'ubuntu') # speed things up. Windows and OSX VMs are slow
uses: protocol/[email protected]
with:
run: go test -v -race ./...
Expand Down

0 comments on commit a67734d

Please sign in to comment.