Skip to content

Relax precision test in example #109

Relax precision test in example

Relax precision test in example #109

Workflow file for this run

name: main
on:
pull_request:
push:
env:
GOFUMPT_VERSION: 0.6.0
GOLANGCI_LINT_VERSION: 1.56.2
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
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@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
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@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
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@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
cache: true
go-version-file: go.mod
- uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804
with:
version: v${{ env.GOLANGCI_LINT_VERSION }}
- name: format
run: make format