new/unit-tests (#1)
Reviewed-on: #1 Co-authored-by: jake <jake.young.dev@gmail.com> Co-committed-by: jake <jake.young.dev@gmail.com>
This commit was merged in pull request #1.
This commit is contained in:
13
action.yaml
13
action.yaml
@@ -1,9 +1,20 @@
|
||||
name: "donotpassgo"
|
||||
description: "general go code checks"
|
||||
inputs:
|
||||
test:
|
||||
description: "runs unit tests with specified library"
|
||||
required: false
|
||||
default: "none"
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: "install go packages"
|
||||
- name: "run unit tests"
|
||||
shell: bash
|
||||
run: ${{ github.action_path }}/test.sh
|
||||
env:
|
||||
LIBRARY: ${{ inputs.test }}
|
||||
|
||||
- name: "install govulncheck"
|
||||
run: |
|
||||
go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user