gotelem/.github/workflows/go.yml
saji 7b48dd0d1c
All checks were successful
Go / build (1.21) (push) Successful in 1m12s
Go / build (1.22) (push) Successful in 1m10s
update action versions
2024-03-02 01:00:08 -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@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 ./...