1
Fork 0

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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 8 deletions

View File

@ -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

View File

@ -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