Skip to content

Commit 484f3c7

Browse files
authored
Merge pull request #668 from graph-gophers/use-gh-actions
ci(github): use GitHub actions
2 parents f73d124 + d0a870c commit 484f3c7

File tree

3 files changed

+36
-36
lines changed

3 files changed

+36
-36
lines changed

.github/workflows/go.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
name: Go
4+
5+
on:
6+
push:
7+
branches: [ "master" ]
8+
pull_request:
9+
branches: [ "master" ]
10+
11+
permissions:
12+
contents: read
13+
pull-requests: read
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version: 1.24
25+
26+
- name: Build
27+
run: go build -v ./...
28+
29+
- name: Test
30+
run: go test -v ./...
31+
32+
- name: golangci-lint
33+
uses: golangci/golangci-lint-action@v8
34+
with:
35+
version: v2.1.6

.semaphore/semaphore.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

internal/exec/resolvable/resolvable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func (b *execBuilder) makeObjectExec(typeName string, fields ast.FieldsDefinitio
339339
}
340340
if methodIndex == -1 && len(fieldIndex) == 0 {
341341
var hint string
342-
if findMethod(reflect.PtrTo(resolverType), f.Name) != -1 {
342+
if findMethod(reflect.PointerTo(resolverType), f.Name) != -1 {
343343
hint = " (hint: the method exists on the pointer type)"
344344
}
345345
return nil, fmt.Errorf("%s does not resolve %q: missing method for field %q%s", resolverType, typeName, f.Name, hint)

0 commit comments

Comments
 (0)