-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yogesh Deshpande <[email protected]>
- Loading branch information
1 parent
b9ee32a
commit ec6004f
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,22 @@ | |
name: ci | ||
on: [push, pull_request] | ||
jobs: | ||
|
||
# Test on various OS with specified Go version. | ||
tests: | ||
name: Test on ubuntu-latest | ||
runs-on: ubuntu-latest | ||
env: | ||
GO111MODULE: on | ||
name: Test on ${{matrix.os}} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest] | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
go-version: "1.19" | ||
fetch-depth: 1 | ||
- name: Install mockgen | ||
run: | | ||
go install github.com/golang/mock/[email protected] | ||
|
@@ -21,4 +27,4 @@ jobs: | |
- name: Run tests | ||
run: | | ||
go version | ||
make test | ||
make test |