Skip to content

Commit

Permalink
go1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbourgon committed Sep 19, 2023
1 parent bf2a584 commit 3a6f576
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@ jobs:
test:
strategy:
matrix:
go-version: [1.13.x]
go-version: [1.20.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Install staticcheck
run: pwd && cd .. && go get -v -u honnef.co/go/tools/cmd/staticcheck && cd -
shell: bash
- name: Install golint
run: pwd && cd .. && go get -v -u golang.org/x/lint/golint && cd -
shell: bash
- name: Update PATH
# https://github.com/actions/setup-go/issues/12#issuecomment-524631719
run: echo "##[add-path]$(go env GOPATH)/bin"
shell: bash
- name: Checkout code
uses: actions/checkout@v1
- name: Fmt
if: matrix.platform != 'windows-latest' # :(
run: "F=$(gofmt -l .) ; if [[ $F ]] ; then echo $F ; exit 1 ; fi"
shell: bash
- name: Vet
run: go vet ./...
- name: Staticcheck
run: staticcheck ./...
- name: Lint
run: golint ./...
- name: Test
run: go test -race ./...
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Install staticcheck
run: pwd && cd .. && go get -v -u honnef.co/go/tools/cmd/staticcheck && cd -
shell: bash
- name: Install golint
run: pwd && cd .. && go get -v -u golang.org/x/lint/golint && cd -
shell: bash
- name: Update PATH
# https://github.com/actions/setup-go/issues/12#issuecomment-524631719
run: echo "##[add-path]$(go env GOPATH)/bin"
shell: bash
- name: Checkout code
uses: actions/checkout@v1
- name: Fmt
if: matrix.platform != 'windows-latest' # :(
run: "F=$(gofmt -l .) ; if [[ $F ]] ; then echo $F ; exit 1 ; fi"
shell: bash
- name: Vet
run: go vet ./...
- name: Staticcheck
run: staticcheck ./...
- name: Lint
run: golint ./...
- name: Test
run: go test -race ./...
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/oklog/run

go 1.13
go 1.20

0 comments on commit 3a6f576

Please sign in to comment.