gotelem/.github/workflows/go.yml
2024-03-08 21:59:22 -06:00

34 lines
638 B
YAML

name: Go
on:
push:
branches: [ "master" ]
paths:
- "**.go"
jobs:
build-gotelem:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.21', '1.22']
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install Staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Build
run: go build -v ./cmd/gotelem
- name: Test
run: go test -v ./...
- name: Vet
run: go vet ./...
- name: Staticcheck
run: staticcheck ./...