Skip to content

Commit

Permalink
Merge pull request #1957 from 99designs/move-init-ci
Browse files Browse the repository at this point in the history
Upate init CI step
  • Loading branch information
mtibben authored Feb 9, 2022
2 parents 56bfb18 + 8ea290c commit 42f3243
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 96 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/check-init
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

set -euo pipefail

cd _examples/init

go get -d github.com/99designs/gqlgen@master

if { go run github.com/99designs/gqlgen init 2>&1 >&3 3>&- | grep '^' >&2; } 3>&1; then
echo "gqlgen init failed validation"
gqlgen_dir=$(pwd)
cd $(mktemp -d)
go mod init inittest
go mod edit -replace=github.com/99designs/gqlgen="$gqlgen_dir"
go get -d github.com/99designs/gqlgen

if ! go run github.com/99designs/gqlgen init &>/dev/null ; then
echo "gqlgen init failed"
exit 125
fi
10 changes: 0 additions & 10 deletions _examples/init/go.mod

This file was deleted.

80 changes: 0 additions & 80 deletions _examples/init/go.sum

This file was deleted.

0 comments on commit 42f3243

Please sign in to comment.