add EmitAttrs
and Attrs
to avoid some Map overhead
#14
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: unit-tests | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build | |
strategy: | |
matrix: | |
goVer: ["1.16.x", "1.21.x"] | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Setup Go ${{ matrix.goVer }} | |
uses: actions/setup-go@v1 | |
with: | |
go-version: ${{ matrix.goVer }} | |
id: go | |
- name: Src Checkout | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: Tests | |
env: | |
GO111MODULE: "on" | |
GOPROXY: "https://proxy.golang.org" | |
run: go test -v -cpu=1,2 ./... |