Skip to content

Commit

Permalink
test: add darwin and golint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Nov 26, 2021
1 parent 7e24946 commit 986eeef
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/darwin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: MacOS Unit Tests
on:
pull_request: {}
push: {}

jobs:

build:
name: Build
runs-on: macos-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Build Test
run: |
make
- name: Run unit tests on MacOS
run: go test -v -race ./pkg/...
16 changes: 16 additions & 0 deletions .github/workflows/static.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Static Checks
on:
pull_request: {}
push: {}
jobs:
go_lint:
name: Go Lint
runs-on: ubuntu-18.04
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Run linter
uses: golangci/golangci-lint-action@v2
with:
version: v1.29
args: -E=gofmt,golint,misspell --timeout=30m0s

0 comments on commit 986eeef

Please sign in to comment.