diff options
Diffstat (limited to '')
-rw-r--r-- | dependencies/pkg/mod/github.com/fatih/color@v1.13.0/.github/workflows/go.yml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dependencies/pkg/mod/github.com/fatih/color@v1.13.0/.github/workflows/go.yml b/dependencies/pkg/mod/github.com/fatih/color@v1.13.0/.github/workflows/go.yml new file mode 100644 index 0000000..7ed538b --- /dev/null +++ b/dependencies/pkg/mod/github.com/fatih/color@v1.13.0/.github/workflows/go.yml @@ -0,0 +1,40 @@ +name: build +on: + push: + branches: + - master + - main + pull_request: + +jobs: + test: + name: Test & Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.16 + uses: actions/setup-go@v2 + with: + go-version: ^1.16 + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Run go mod tidy + run: | + set -e + go mod tidy + output=$(git status -s) + if [ -z "${output}" ]; then + exit 0 + fi + echo 'We wish to maintain a tidy state for go mod. Please run `go mod tidy` on your branch, commit and push again.' + echo 'Running `go mod tidy` on this CI test yields with the following changes:' + echo "$output" + exit 1 + + - name: Test + run: go test -race ./... + + - name: Build + run: go build ./... |