Skip to content

Commit

Permalink
Merge pull request #11 from vimeo/go-1-19
Browse files Browse the repository at this point in the history
Build with Go 1.18 and 1.19
  • Loading branch information
sergiosalvatore authored Dec 22, 2022
2 parents 8b30819 + 66aade7 commit ed66e78
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,29 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
goversion: [1.14, 1.15]
goversion: [1.18, 1.19]
steps:
- name: Set up Go ${{matrix.goversion}} on ${{matrix.os}}
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: ${{matrix.goversion}}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: gofmt
run: |
[[ -z $(gofmt -l $(find . -name '*.go') ) ]]
- name: Get dependencies
env:
GO111MODULE: on
run: go mod download

- name: Vet
env:
GO111MODULE: on
run: go vet -mod=readonly ./...

- name: Test
env:
GO111MODULE: on
run: go test -mod=readonly -v -count 2 ./...

- name: Race Test
env:
GO111MODULE: on
run: go test -race -mod=readonly -v -count 2 ./...

0 comments on commit ed66e78

Please sign in to comment.