mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Add github-actions
This commit is contained in:
parent
606897b20f
commit
b7e6db462a
1 changed files with 31 additions and 0 deletions
31
.github/workflows/go.yml
vendored
Normal file
31
.github/workflows/go.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
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.17
|
||||
|
||||
- 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue