mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
We use Revive already which is a replacement for golint and golint isn't maintained anyway.
37 lines
620 B
YAML
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 ./...
|