mirror of https://github.com/databricks/cli.git
Set gotestsum --format to github-actions when running on github (#2082)
This gives grouping and ability to open individual test logs.
This commit is contained in:
parent
4f3cf6ac2c
commit
8af98accee
|
@ -14,6 +14,9 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
env:
|
||||||
|
GOTESTSUM_FORMAT: github-actions
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -2,6 +2,8 @@ default: build
|
||||||
|
|
||||||
PACKAGES=./libs/... ./internal/... ./cmd/... ./bundle/... .
|
PACKAGES=./libs/... ./internal/... ./cmd/... ./bundle/... .
|
||||||
|
|
||||||
|
GOTESTSUM_FORMAT ?= pkgname-and-test-fails
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
./lint.sh ./...
|
./lint.sh ./...
|
||||||
|
|
||||||
|
@ -9,10 +11,10 @@ lintcheck:
|
||||||
golangci-lint run ./...
|
golangci-lint run ./...
|
||||||
|
|
||||||
test:
|
test:
|
||||||
gotestsum --format pkgname-and-test-fails --no-summary=skipped -- ${PACKAGES}
|
gotestsum --format ${GOTESTSUM_FORMAT} --no-summary=skipped -- ${PACKAGES}
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
gotestsum --format pkgname-and-test-fails --no-summary=skipped -- -coverprofile=coverage.txt ${PACKAGES}
|
gotestsum --format ${GOTESTSUM_FORMAT} --no-summary=skipped -- -coverprofile=coverage.txt ${PACKAGES}
|
||||||
|
|
||||||
showcover:
|
showcover:
|
||||||
go tool cover -html=coverage.txt
|
go tool cover -html=coverage.txt
|
||||||
|
|
Loading…
Reference in New Issue