Skip to content

Commit

Permalink
Merge pull request #50 from moul/dev/moul/check-gomod2
Browse files Browse the repository at this point in the history
  • Loading branch information
moul authored Jun 22, 2020
2 parents 60cfb7b + a9c4660 commit 628a999
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ jobs:
key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.golang }}-
- name: Compile the project
run: make go.install
- name: Run tests on Unix-like operating systems
run: make unittest
- name: Check go.mod
- name: Check go.mod and go.sum
run: |
go mod tidy -v
git --no-pager diff go.mod go.sum
Expand Down Expand Up @@ -129,6 +131,13 @@ jobs:
key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.golang }}-
- name: Compile the project
run: make go.install
- name: Check go.mod and go.sum
run: |
go mod tidy -v
git --no-pager diff go.mod go.sum
git --no-pager diff --quiet go.mod go.sum
- name: Run tests on Unix-like operating systems
run: make unittest
- name: Upload coverage to Codecov
Expand Down
1 change: 0 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ func TestRun(t *testing.T) {

func TestMain(m *testing.M) {
goleak.VerifyTestMain(m)

}

0 comments on commit 628a999

Please sign in to comment.