Skip to content

Update dependencies to support Go 1.22 #43

Update dependencies to support Go 1.22

Update dependencies to support Go 1.22 #43

Workflow file for this run

name: Go
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Cache
uses: actions/cache@v2
with:
path: |
~/go/bin
~/go/src
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: go version
- run: go test -race -v ./...
build-gotip:
name: Build using gotip
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.20.x
- run: go install golang.org/dl/gotip@latest
- run: gotip download
- run: gotip version
- run: gotip build ./cmd/structslop
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2