Fixed "Nas type not found" #6
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
name: Go | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- '**.go' | |
- 'go.mod' | |
- '.github/workflows/go.yml' | |
pull_request: | |
paths: | |
- '**.go' | |
- 'go.mod' | |
- '.github/workflows/go.yml' | |
env: | |
GOPROXY: "https://proxy.golang.org" | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: v1.37.0 | |
args: --timeout=30m | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.16.x | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run tests | |
run: go test -v -race ./... |