1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00
gocsaf/.github/workflows/go.yml
Christoph Klassen 3ab00e8759
Remove golint github action
We use Revive already which is a replacement for golint and golint isn't maintained anyway.
2025-05-28 11:30:46 +02:00

37 lines
620 B
YAML

name: Go
on:
push:
paths:
- "**.go"
pull_request:
paths:
- "**.go"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "stable"
- name: Build
run: go build -v ./cmd/...
- name: vet
run: go vet ./...
- name: gofmt
uses: Jerome1337/gofmt-action@v1.0.4
with:
gofmt-flags: "-l -d"
- name: Revive Action
uses: morphy2k/revive-action@v2.7.4
- name: Tests
run: go test -v ./...