diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index fd470b8..a8f2a30 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -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: @@ -20,4 +20,6 @@ jobs: - name: Build and test using make file run: | set -euo pipefail - make build 2>&1 | gotestfmt -hide all \ No newline at end of file + make build_setup + go test -json -v ./... 2>&1 | gotestfmt -hide all + make build_cleanup \ No newline at end of file diff --git a/Makefile b/Makefile index e1de8f8..bbc609a 100644 --- a/Makefile +++ b/Makefile @@ -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