Skip to content

Commit

Permalink
Upate init CI step
Browse files Browse the repository at this point in the history
  • Loading branch information
mtibben committed Feb 9, 2022
1 parent 56bfb18 commit 8ea290c
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 8ea290c

Please sign in to comment.