Skip to content

Commit

Permalink
ci: test golang 1.17.x too
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Aug 17, 2021
1 parent 113cbc7 commit f067afc
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,32 @@ jobs:
- ubuntu
- macOS
go:
- 1.14.x
- 1.15.x
- 1.16.x
name: '${{ matrix.platform }} | ${{ matrix.go }}'
- 14
- 15
- 16
name: '${{ matrix.platform }} | 1.${{ matrix.go }}.x'
runs-on: ${{ matrix.platform }}-latest
steps:

- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
go-version: 1.${{ matrix.go }}.x

- uses: actions/checkout@v2

- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-${{ matrix.go }}-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-${{ matrix.go }}-
key: ${{ runner.os }}-1.${{ matrix.go }}.x-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-1.${{ matrix.go }}.x-

- run: |
export GOBIN=$HOME/go/bin
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b $GOBIN latest
[ "${{ matrix.go }}" = "1.16.x" ] && _version='@latest' || _version=''
case "${{ matrix.go }}" in
16|17) _version='@latest';;
*) _version='';;
esac
go install github.com/kyoh86/richgo"${_version}"
go install github.com/mitchellh/gox"${_version}"
Expand Down

0 comments on commit f067afc

Please sign in to comment.