@ -5,6 +5,11 @@ on:
pull_request:
pull_request:
branches:
branches:
- master
- master
# Note that a full "go test" is quite heavy,
# as it runs many builds under the hood.
# The default -timeout=10m can be hit by the hosted runners.
name : Test
name : Test
jobs:
jobs:
test:
test:
@ -23,11 +28,10 @@ jobs:
- name : Test
- name : Test
run : |
run : |
go env
go env
go test ./...
go test -timeout=15m ./...
- name : Test with -race
- name : Test with -race
# macos and windows tend to be a bit slower,
# macos and windows tend to be a bit slower,
# and it's rare that a race in garble would be OS-specific.
# and it's rare that a race in garble would be OS-specific.
# also note that this can take 5-10m, so use a larger timeout.
if : matrix.os == 'ubuntu-latest'
if : matrix.os == 'ubuntu-latest'
run : |
run : |
go test -race -timeout=20m ./...
go test -race -timeout=20m ./...
@ -50,7 +54,7 @@ jobs:
- name : Test
- name : Test
run : |
run : |
go env
go env
go test ./...
go test -timeout=15m ./...
test-gotip:
test-gotip:
runs-on : ubuntu-latest
runs-on : ubuntu-latest
@ -77,7 +81,7 @@ jobs:
- name : Test
- name : Test
run : |
run : |
go env
go env
go test ./...
go test -timeout=15m ./...
code-checks:
code-checks:
runs-on : ubuntu-latest
runs-on : ubuntu-latest