Skip to content

Upgrade github actions. #57

Upgrade github actions.

Upgrade github actions. #57

Workflow file for this run

name: Go
on:
push:
tags:
- v*
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ "1.19.x", "1.20.x", "1.21.x" ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Run gofmt
run: diff -u <(echo -n) <(gofmt -d .)
- name: Test
run: go test -timeout=120s -v -race -short
- name: Run go vet
run: go vet ./