Implement Count()
for DiagnosticsMap
(#303)
#1301
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: ci | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
env: | |
GOPROXY: https://proxy.golang.org/ | |
jobs: | |
copywrite: | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # https://github.com/actions/checkout/releases/tag/v3.5.3 | |
- name: Install copywrite | |
uses: hashicorp/setup-copywrite@v1.1.2 | |
- name: Validate Header Compliance | |
run: copywrite headers --plan | |
test: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 5 | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # https://github.com/actions/checkout/releases/tag/v3.5.3 | |
- | |
name: Unshallow | |
run: git fetch --prune --unshallow | |
- | |
name: Set up Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # https://github.com/actions/setup-go/releases/tag/v4.1.0 | |
with: | |
go-version-file: ".go-version" | |
- | |
name: Go mod download | |
run: go mod download -x | |
- | |
name: Go mod verify | |
run: go mod verify | |
- | |
name: Run go fmt | |
run: go run github.com/mh-cbon/go-fmt-fail ./... | |
- | |
name: Run tests | |
run: go test -v -race -covermode=atomic ./... |