From 7bba8407d5e5b3125075c7a57f6bc3352319d612 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Fri, 5 Apr 2024 22:22:11 +0100 Subject: [PATCH] Add caching and go-version-file to action --- .gitea/workflows/go-test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/go-test.yaml b/.gitea/workflows/go-test.yaml index 1b27aab..91676d6 100644 --- a/.gitea/workflows/go-test.yaml +++ b/.gitea/workflows/go-test.yaml @@ -16,7 +16,8 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version-file: ./src/go.mod + cache: true - name: Run tests run: cd ./src && go test ./... \ No newline at end of file