shiori/scripts/test.sh
Felipe Martin 647945c54e
ci: unify local and ci docker workflows (#907)
* 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
2024-05-14 08:01:52 +02:00

15 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