Add caching and go-version-file to action
This commit is contained in:
@@ -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 ./...
|
||||
Reference in New Issue
Block a user