Skip to content

Add badges for Go Report Card, Go version, and license #5

Add badges for Go Report Card, Go version, and license

Add badges for Go Report Card, Go version, and license #5

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.20", "1.21", "1.22"]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55
- name: Test
run: go test -v ./...