diff --git a/.forgejo/actions/tests/Dockerfile b/.forgejo/actions/mage/Dockerfile similarity index 100% rename from .forgejo/actions/tests/Dockerfile rename to .forgejo/actions/mage/Dockerfile diff --git a/.forgejo/actions/mage/action.yaml b/.forgejo/actions/mage/action.yaml new file mode 100644 index 0000000..fbb028b --- /dev/null +++ b/.forgejo/actions/mage/action.yaml @@ -0,0 +1,16 @@ +--- +name: "Enbas Mage Target" +description: "Runs a mage target for the Enbas project" + +inputs: + target: + description: "The mage target to run" + required: true + +runs: + using: "docker" + image: "Dockerfile" + entrypoint: "mage" + args: + - -v + - ${{ inputs.target }} diff --git a/.forgejo/actions/tests/action.yaml b/.forgejo/actions/tests/action.yaml deleted file mode 100644 index f89c4f5..0000000 --- a/.forgejo/actions/tests/action.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: "Testing" -description: "Performs tests for Enbas with mage" -runs: - using: "docker" - image: "Dockerfile" - env: - ENBAS_TEST_VERBOSE: "1" - ENBAS_TEST_COVER: "1" - entrypoint: "mage -v test" diff --git a/.forgejo/workflows/Tests.yaml b/.forgejo/workflows/Tests.yaml index bb772d5..24bed97 100644 --- a/.forgejo/workflows/Tests.yaml +++ b/.forgejo/workflows/Tests.yaml @@ -1,6 +1,7 @@ --- name: Tests + on: pull_request: types: @@ -14,4 +15,7 @@ jobs: - name: Checkout Repository uses: https://code.forgejo.org/actions/checkout@v4 - name: Test - uses: ./.forgejo/actions/tests + uses: ./.forgejo/actions/mage + env: + ENBAS_TEST_VERBOSE: "1" + ENBAS_TEST_COVER: "1"