diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 65ef1323..72fd1718 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/api/go.mod b/api/go.mod index b04de2cb..bb3bfe4d 100644 --- a/api/go.mod +++ b/api/go.mod @@ -1,6 +1,6 @@ module github.com/photoview/photoview/api -go 1.18 +go 1.22.0 require ( github.com/99designs/gqlgen v0.17.49