Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
Merge 99ebb32 into eefdfb1
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Aug 11, 2020
2 parents eefdfb1 + 99ebb32 commit 6ee8010
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
pull_request:
push:
branches:
- main
name: Test
jobs:
test:
strategy:
fail-fast: false
matrix:
go-version:
- 1.14.x
platform:
- ubuntu-latest
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Check go.mod
run: |
go mod tidy
if [ ! -z "$(git status --porcelain go.mod)" ]; then
printf "go.mod has modifications\n"
git diff go.mod
exit 1
fi
if [ ! -z "$(git status --porcelain go.sum)" ]; then
printf "go.sum has modifications\n"
git diff go.sum
exit 1
fi
- name: Lint code
run: make lint
- name: Run tests
run: make testrace
- name: Run integration tests
run: make test-integration

0 comments on commit 6ee8010

Please sign in to comment.