...

Text file src/github.com/99designs/gqlgen/.github/workflows/check-generate

Documentation: github.com/99designs/gqlgen/.github/workflows

     1#!/bin/bash
     2set -exuo pipefail
     3export GO111MODULE=on
     4echo Generating in root
     5go generate ./...
     6echo Swithcing to _examples and generating again
     7cd _examples && go generate ./...
     8if [[ $(git --no-pager diff) ]] ; then
     9    echo "you need to run "go generate ./..." and commit the changes"
    10    git --no-pager diff
    11    exit 1
    12fi

View as plain text