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
2022-09-24 18:37:06 +02:00

34 lines
570 B
YAML

name: Go
on:
push:
paths:
- "**.go"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19.1
- 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: golint
uses: Jerome1337/golint-action@v1.0.2
- name: Tests
run: go test -v ./...