Skip to content

Commit

Permalink
Action workflow updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne0nd0g committed Nov 28, 2023
1 parent e80c47a commit 48ebff8
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 3 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/go_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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: "Merlin Server Build & Test: !main"

on:
push:
branches-ignore:
- main
pull_request:

jobs:

build:
name: 'Code Quality Scan & Build: !main'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
id: checkout
uses: actions/checkout@v3

- 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

- 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
7 changes: 4 additions & 3 deletions .github/workflows/go.yml → .github/workflows/go_main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# 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: "Merlin Server Build & Test"
name: "Merlin Server Build & Test: Main"

on:
push:
pull_request:
branches:
- main

jobs:

build:
name: 'Build Job'
name: 'Code Quality Scan & Build: main'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
Expand Down

0 comments on commit 48ebff8

Please sign in to comment.