From 4a764ea57cce2cc1461e38dc06f560fb6c047dc0 Mon Sep 17 00:00:00 2001 From: cubicroot Date: Sun, 11 Aug 2024 14:24:52 +0200 Subject: [PATCH] cd into workdir --- .github/workflows/golang_test.yaml | 2 +- tests/golang_test/go.mod | 2 +- tests/golang_test/main_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/golang_test.yaml b/.github/workflows/golang_test.yaml index c5b1c4f..96ae979 100644 --- a/.github/workflows/golang_test.yaml +++ b/.github/workflows/golang_test.yaml @@ -30,4 +30,4 @@ jobs: with: ref: ${{ github.head_ref }} - name: Run tests - run: CGO_ENABLED=1 && go test -cover -race ${{ inputs.workdir }}... \ No newline at end of file + run: (cd ${{ inputs.workdir }} && CGO_ENABLED=1 && go test -cover -race ./...) \ No newline at end of file diff --git a/tests/golang_test/go.mod b/tests/golang_test/go.mod index c3969ee..373ec43 100644 --- a/tests/golang_test/go.mod +++ b/tests/golang_test/go.mod @@ -1,3 +1,3 @@ -module golang_test +module golangtest go 1.22.5 diff --git a/tests/golang_test/main_test.go b/tests/golang_test/main_test.go index 7e5ba21..9435040 100644 --- a/tests/golang_test/main_test.go +++ b/tests/golang_test/main_test.go @@ -1,7 +1,7 @@ package golangtest_test import ( - golangtest "golang_test" + "golangtest" "testing" )