Skip to content

Merge pull request #253 from twpayne/misc-fixes #120

Merge pull request #253 from twpayne/misc-fixes

Merge pull request #253 from twpayne/misc-fixes #120

Workflow file for this run

name: main
on:
pull_request:
push:
env:
GOFUMPT_VERSION: 0.6.0
GOTOOLCHAIN: local
GOLANGCI_LINT_VERSION: 1.59.1
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
cache: true
go-version-file: go.mod
- name: build
run: go build ./...
- name: test
run: go test -race -tags=docker ./...
- name: Check formatting
run: |
make format
git diff --exit-code
- name: Check generate
run: |
make generate
git diff --exit-code
darwin:
runs-on: macos-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
cache: true
go-version-file: go.mod
- name: build
run: go build ./...
- name: test
run: go test -race ./...
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
cache: true
go-version-file: go.mod
- name: build
run: go build ./...
- name: test
run: go test -race ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
cache: true
go-version-file: go.mod
- uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86
with:
version: v${{ env.GOLANGCI_LINT_VERSION }}
- name: format
run: make format