2023-05-29 01:56:41 +00:00
|
|
|
name: Go
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
2024-03-09 03:59:22 +00:00
|
|
|
paths:
|
|
|
|
- "**.go"
|
2023-05-29 01:56:41 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
2024-03-09 03:59:22 +00:00
|
|
|
build-gotelem:
|
2024-02-26 05:37:08 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-02-28 20:17:47 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
go-version: ['1.21', '1.22']
|
2023-05-29 01:56:41 +00:00
|
|
|
steps:
|
2024-03-02 07:00:08 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-05-29 01:56:41 +00:00
|
|
|
|
|
|
|
- name: Set up Go
|
2024-03-02 07:00:08 +00:00
|
|
|
uses: actions/setup-go@v5
|
2024-02-26 05:37:08 +00:00
|
|
|
with:
|
2024-02-28 20:17:47 +00:00
|
|
|
go-version: ${{ matrix.go-version }}
|
2024-02-28 07:24:27 +00:00
|
|
|
- name: Install Staticcheck
|
|
|
|
run: go install honnef.co/go/tools/cmd/staticcheck@latest
|
2023-05-29 01:56:41 +00:00
|
|
|
- name: Build
|
|
|
|
run: go build -v ./cmd/gotelem
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: go test -v ./...
|
2024-02-28 07:24:27 +00:00
|
|
|
- name: Vet
|
|
|
|
run: go vet ./...
|
|
|
|
- name: Staticcheck
|
|
|
|
run: staticcheck ./...
|