-
Notifications
You must be signed in to change notification settings - Fork 807
68 lines (57 loc) · 1.64 KB
/
go_dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: "Scan, Build, & Test: Development Work"
on:
push:
branches-ignore:
- main
paths-ignore:
- '.github/**'
- 'data/**'
- 'docs/**'
- '.gitattributes'
- '.gitignore'
- '.gitmodules'
- 'LICENSE'
- 'README.MD'
pull_request:
jobs:
build:
name: 'Code Quality Scan & Build: Development Work'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
id: checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: 'Build Merlin Server'
id: build
run: 'make distro'
- name: 'Test Merlin Server'
id: test
run: 'go test ./...'
- name: GoVulnCheck
id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: '1.21'
go-package: './...'
- name: Gosec Security Scanner
id: gosec
uses: securego/gosec@master
with:
args: ./...
- name: Go Report Card - Install
id: goreportcard_install
working-directory: /tmp
run: |
git clone https://github.com/gojp/goreportcard.git
cd goreportcard
make install
go install ./cmd/goreportcard-cli
- name: Go Report Card - Run
id: goreportcard_run
run: 'goreportcard-cli -v' # This renames the files in the ./rpc directory to *.grc.bak causing builds to fail