Skip to content

Commit

Permalink
Merge f8dbd2d into ff693d1
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrej-fabry committed Mar 2, 2020
2 parents ff693d1 + f8dbd2d commit b831f8b
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/ci.yml
Expand Up @@ -31,6 +31,18 @@ jobs:
# with:
# github_token: ${{ secrets.github_token }}
# reporter: github-check
checkgomod:
name: check go.mod
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: 1.13
- run: go mod tidy -v
- name: Check for changes in go.mod
run: |
git diff --name-only --exit-code go.mod || ( git diff && echo "Run go tidy to update go.mod" && false )
build:
name: build go
runs-on: ubuntu-latest
Expand All @@ -56,16 +68,3 @@ jobs:
# eval $(go env)
# mkdir -p ~/junit/
# ${GOPATH}/bin/gotestsum --junitfile ~/junit/unit-tests.xml -- -short $(go list ./...)
checkgomod:
name: check go.mod and go.sum
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: 1.13
- run: go mod tidy
- name: Check for changes in go.mod or go.sum
run: |
git diff --name-only --exit-code go.mod || ( echo "Run go tidy" && false )
git diff --name-only --exit-code go.sum || ( echo "Run go tidy" && false )

0 comments on commit b831f8b

Please sign in to comment.