mirror of
https://github.com/go-shiori/shiori.git
synced 2025-01-15 04:17:43 +08:00
647945c54e
* deps: go to 1.22.3 * removed ci dockerfile * add make buildx * updated dockerfile * ci uses make buildx command * commented upx for the future * disable openbsd/arm tests * wip * put dist file in dist path * removed unused make command * build-local to speed up local tests * don't clean when buildx * podman workaround * manually define source files for tests
14 lines
393 B
Bash
14 lines
393 B
Bash
#!/bin/bash
|
|
|
|
# Check if gotestfmt is installed
|
|
if ! [ -x "$(command -v gotestfmt)" ]; then
|
|
echo "gotestfmt not found. Using test standard output."
|
|
fi
|
|
|
|
# if gotestfmt is installed, run with it
|
|
if [ -x "$(command -v gotestfmt)" ]; then
|
|
set -o pipefail
|
|
go test ${SOURCE_FILES} ${GO_TEST_FLAGS} -json | gotestfmt ${GOTESTFMT_FLAGS}
|
|
else
|
|
go test ${SOURCE_FILES} ${GO_TEST_FLAGS}
|
|
fi
|