run mage action without input (error expected)
Some checks failed
Tests / test (pull_request) Failing after 4s

This commit is contained in:
Dan Anglin 2024-08-17 18:13:56 +01:00
parent 545ba48f4a
commit 91c2ffeb93
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
4 changed files with 21 additions and 11 deletions

View 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 }}

View file

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

View file

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