forked from shurcooL/graphql
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into graphql-operation-builder
- Loading branch information
Showing
8 changed files
with
103 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,15 @@ jobs: | |
test-go: | ||
name: Run Go lint and unit tests | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.16.4" | ||
- uses: actions/cache@v2 | ||
go-version: "1.20" | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
|
@@ -29,7 +31,9 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Install dependencies | ||
run: go get -t -v ./... | ||
run: | | ||
go get -t -v ./... | ||
go install ./... | ||
- name: Format | ||
run: diff -u <(echo -n) <(gofmt -d -s .) | ||
- name: Vet | ||
|
@@ -43,6 +47,7 @@ jobs: | |
- name: Go coverage format | ||
run: | | ||
go get github.com/boumenot/gocover-cobertura | ||
go install github.com/boumenot/gocover-cobertura | ||
gocover-cobertura < coverage.out > coverage.xml | ||
- name: Code Coverage Summary Report | ||
uses: irongut/[email protected] | ||
|
@@ -58,9 +63,8 @@ jobs: | |
thresholds: "60 80" | ||
- name: Add Coverage PR Comment | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
if: github.event_name == 'pull_request' | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
with: | ||
recreate: true | ||
path: code-coverage-results.md | ||
- name: Dump docker logs on failure | ||
if: failure() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
module github.com/hasura/go-graphql-client | ||
|
||
go 1.16 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/google/uuid v1.3.0 | ||
github.com/graph-gophers/graphql-go v1.5.0 | ||
github.com/graph-gophers/graphql-transport-ws v0.0.2 | ||
nhooyr.io/websocket v1.8.7 | ||
) | ||
|
||
require ( | ||
github.com/gorilla/websocket v1.5.0 // indirect | ||
github.com/klauspost/compress v1.16.7 // indirect | ||
golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b // indirect | ||
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect | ||
nhooyr.io/websocket v1.8.7 | ||
) | ||
|
||
replace github.com/gin-gonic/gin v1.6.3 => github.com/gin-gonic/gin v1.7.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.