mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
* Add go_legacy.yml to check for compatibility with older go versions * Remove tests already done in go.yml * fix: Update actions, use stable/oldstable in actions --------- Co-authored-by: JanHoefelmeyer <hoefelmeyer.jan@gmail.com>
40 lines
688 B
YAML
40 lines
688 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: golint
|
|
uses: Jerome1337/golint-action@v1.0.2
|
|
|
|
- name: Revive Action
|
|
uses: morphy2k/revive-action@v2.5.1
|
|
|
|
- name: Tests
|
|
run: go test -v ./...
|