restructuring logic and adding more inputs #2

Merged
jake merged 12 commits from cleanup into main 2026-04-03 20:09:13 +00:00
2 changed files with 10 additions and 2 deletions
Showing only changes of commit f8222f2953 - Show all commits

View File

@@ -4,4 +4,6 @@ donotpassgo is a github/gitea action to run standard go checks in pipelines.
## TODO ## TODO
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

View File

@@ -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