restructuring logic and adding more inputs #2
@@ -5,3 +5,5 @@ donotpassgo is a github/gitea action to run standard go checks in pipelines.
|
|||||||
explain inputs in readme
|
explain inputs in readme
|
||||||
test
|
test
|
||||||
does file naming matter here if the project has install.sh or /src will we overwrite?
|
does file naming matter here if the project has install.sh or /src will we overwrite?
|
||||||
|
review MR, im drunk-ish
|
||||||
|
some jobs need env vars still lol
|
||||||
@@ -6,7 +6,7 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
default: "none"
|
default: "none"
|
||||||
test-version: #TEST_VERSION
|
test-version: #TEST_VERSION
|
||||||
description: "the test library version, if the version is none or standard this value is ignored"
|
description: "the test library version, if the library is none or standard this value is ignored"
|
||||||
required: false
|
required: false
|
||||||
default: "latest"
|
default: "latest"
|
||||||
test-fail: #TEST_FAIL
|
test-fail: #TEST_FAIL
|
||||||
@@ -36,10 +36,16 @@ runs:
|
|||||||
- name: "install dependencies"
|
- name: "install dependencies"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ${{ github.action_path }}/src/install.sh
|
run: ${{ github.action_path }}/src/install.sh
|
||||||
|
env:
|
||||||
|
TEST_LIBRARY: ${{ inputs.test-library }}
|
||||||
|
TEST_VERSION: ${{ inputs.test-version }}
|
||||||
|
|
||||||
- name: "run unit tests"
|
- name: "run unit tests"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ${{ github.action_path }}/src/test.sh
|
run: ${{ github.action_path }}/src/test.sh
|
||||||
|
env:
|
||||||
|
TEST_LIBRARY: ${{ inputs.test-library }}
|
||||||
|
TEST_FAIL: ${{ inputs.test-fail }}
|
||||||
|
|
||||||
- name: "run security checks"
|
- name: "run security checks"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user