priority config (#217) #269
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: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go: [ "1.19", "1.20" ] | |
name: build & test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Go Build | |
run: go build -v ./... | |
- name: Go Vet | |
run: go vet ./... | |
- name: Go Test | |
run: go test -v -coverprofile=coverage.out -covermode=atomic -race ./... | |
- name: Upload coverage to Codecov | |
run: bash <(curl -s https://codecov.io/bash) |