Fix Subtype Announcement and Query #43
Workflow file for this run
This file contains hidden or 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: unittest | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| unit: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ "ubuntu", "windows", "macos" ] | |
| go: [ "1.15.x", "1.16.x" ] | |
| runs-on: ${{ matrix.os }}-latest | |
| name: Unit tests (${{ matrix.os}}, Go ${{ matrix.go }}) | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-go@v2 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: Go information | |
| run: | | |
| go version | |
| go env | |
| - name: Run tests | |
| run: go test -v ./... | |
| - name: Run tests (32 bit) | |
| if: ${{ matrix.os != 'macos' }} # can't run 32 bit tests on OSX. | |
| env: | |
| GOARCH: 386 | |
| run: go test -v ./... | |
| - name: Run tests with race detector | |
| if: ${{ matrix.os == 'ubuntu' }} # speed things up. Windows and OSX VMs are slow | |
| run: go test -v -race ./... |