From 70df6ece76ddfe5a6637aa398a980f33e81ac1ce Mon Sep 17 00:00:00 2001 From: Bohan Chen Date: Tue, 21 Nov 2023 15:50:47 -0500 Subject: [PATCH] setup go toolchain for unit test workflow i think we were relying on the go toolchain available inside the runner image, which could be out of date. Instead we should use the setup-go action which should have the latest version of the toolchain Signed-off-by: Bohan Chen --- .github/workflows/unit-test.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index a62cfbb08..e3c161b7d 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -10,7 +10,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version-file: 'go.mod' - name: Run tests run: make unit-ci - name: Report coverage - uses: codecov/codecov-action@v3.1.4 \ No newline at end of file + uses: codecov/codecov-action@v3.1.4