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:
parent
e36b09753a
commit
55d6097cc1
|
@ -51,14 +51,18 @@ jobs:
|
||||||
working-directory: api
|
working-directory: api
|
||||||
|
|
||||||
steps:
|
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
|
- 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
|
- name: Cache Go dependencies
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module github.com/photoview/photoview/api
|
module github.com/photoview/photoview/api
|
||||||
|
|
||||||
go 1.18
|
go 1.22.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/99designs/gqlgen v0.17.49
|
github.com/99designs/gqlgen v0.17.49
|
||||||
|
|
Loading…
Reference in New Issue