Return error when casting empty string to duration #11692
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Tests" | |
on: | |
merge_group: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
- run: go mod download | |
- run: make fmt | |
- run: make tidy | |
- run: make vet | |
- run: make test-generate | |
- run: make test-unit | |
- run: make test-system | |
- run: make test-heavy | |
test-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
- run: go test -short ./... | |
- run: mkdir dist -ea 0 | |
- run: go build -o dist ./cmd/... | |
- run: go test -v ./mdtest | |
output-check: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
- run: make install | |
- run: make output-check |