Update GO version in the go.mod and read it by the job to setup the testing environment for unit tests (#980)

Co-authored-by: Konstantin Koval
This commit is contained in:
Kostiantyn
2024-06-28 15:59:31 +03:00
committed by GitHub
parent e36b09753a
commit 55d6097cc1
2 changed files with 12 additions and 8 deletions

View File

@@ -51,14 +51,18 @@ jobs:
working-directory: api
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ^1.22
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Fetch branches
run: git fetch --all
- name: Set up Go
uses: actions/setup-go@v5
id: go
with:
go-version-file: ${{ github.workspace }}/api/go.mod
cache: false
- name: Cache Go dependencies
uses: actions/cache@v2