Skip to content

Merge pull request #225 from Annopaolo/prepare-22.11.04 #409

Merge pull request #225 from Annopaolo/prepare-22.11.04

Merge pull request #225 from Annopaolo/prepare-22.11.04 #409

Workflow file for this run

name: Build and Test
on:
# Run on mainline branches
push:
branches:
- 'master'
- 'release-*'
# Run on branch/tag creation
create:
# Run on Pull Requests
pull_request:
jobs:
build:
name: Build and Test
strategy:
matrix:
go: [1.18.x, 1.19.x]
os: [ubuntu-20.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
id: go
- uses: actions/checkout@v2
- name: Check gofmt
run: diff -u <(echo -n) <(gofmt -d .)
if: matrix.os != 'windows-latest'
- name: Run go vet
run: go vet $(go list ./... | grep -v /vendor/)
- name: Build
run: go build -v .
- name: Test
run: go test -v -race ./...