Skip to content

Return error when casting empty string to duration #11692

Return error when casting empty string to duration

Return error when casting empty string to duration #11692

Workflow file for this run

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