run mage action without input (error expected)
Some checks failed
Tests / test (pull_request) Failing after 4s
Some checks failed
Tests / test (pull_request) Failing after 4s
This commit is contained in:
parent
545ba48f4a
commit
91c2ffeb93
4 changed files with 21 additions and 11 deletions
16
.forgejo/actions/mage/action.yaml
Normal file
16
.forgejo/actions/mage/action.yaml
Normal file
|
@ -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 }}
|
|
@ -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"
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
name: Tests
|
name: Tests
|
||||||
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
|
@ -14,4 +15,7 @@ jobs:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: https://code.forgejo.org/actions/checkout@v4
|
uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
- name: Test
|
- name: Test
|
||||||
uses: ./.forgejo/actions/tests
|
uses: ./.forgejo/actions/mage
|
||||||
|
env:
|
||||||
|
ENBAS_TEST_VERBOSE: "1"
|
||||||
|
ENBAS_TEST_COVER: "1"
|
||||||
|
|
Loading…
Reference in a new issue