gotelem/.github/workflows/go.yml

34 lines
638 B
YAML
Raw Normal View History

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
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:
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 ./...