gotelem/.github/workflows/go.yml
saji aaec62fd3a
All checks were successful
Go / build (1.22) (push) Successful in 1m16s
Go / build (1.21) (push) Successful in 2m30s
support 1.21, add matrix for 1.21 and 1.22 in CI
2024-02-28 14:17:47 -06:00

32 lines
603 B
YAML

name: Go
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.21', '1.22']
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
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 ./...