Skip to content

Commit

Permalink
utilize gotestfmt to cleanup tests result view
Browse files Browse the repository at this point in the history
  • Loading branch information
pitabwire committed Jan 24, 2025
1 parent d10be62 commit d1bf998
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.20'
go-version: '^1.23'
- name: Set up gotestfmt
uses: GoTestTools/gotestfmt-action@v2
with:
Expand All @@ -20,4 +20,6 @@ jobs:
- name: Build and test using make file
run: |
set -euo pipefail
make build 2>&1 | gotestfmt -hide all
make build_setup
go test -json -v ./... 2>&1 | gotestfmt -hide all
make build_cleanup
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,6 @@ gen_tls_certificates:
-CAkey tests_runner/ca-key.pem -CAcreateserial -out tests_runner/server-cert.pem


build: clean fmt vet gen_tls_certificates docker-setup tests docker-stop ## run all preliminary steps and tests the setup
build_setup: clean fmt vet gen_tls_certificates docker-setup ## run all preliminary steps and tests the setup
build_cleanup: docker-stop ## run all preliminary steps and tests the setup
build: build_setup tests build_cleanup ## run all preliminary steps and tests the setup

0 comments on commit d1bf998

Please sign in to comment.