HellPot/.github/workflows/go.yml

27 lines
644 B
YAML
Raw Normal View History

2022-04-21 02:29:19 +00:00
name: Vibe Check
2021-09-18 12:33:22 +00:00
on:
push:
2022-04-21 02:31:36 +00:00
branches: [ master, development ]
2021-09-18 12:33:22 +00:00
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
2021-10-17 17:09:28 +00:00
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
2022-04-09 01:36:55 +00:00
go-version: 1.18
2022-04-21 02:29:19 +00:00
- name: go vet -v ./...
2022-04-09 01:36:55 +00:00
run: go vet -v ./...
2022-04-21 02:29:19 +00:00
- name: gosec ./...
run: | # https://github.com/securego/gosec/issues/469
export PATH=$PATH:$(go env GOPATH)/bin
go install github.com/securego/gosec/v2/cmd/gosec@latest
gosec ./...
2022-04-21 02:29:19 +00:00
- name: go build -v ./...
run: go build -v ./...