Skip to content

Commit e63b181

Browse files
committed
feat: Added bats output
1 parent 5f0282d commit e63b181

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ inputs:
2020
required: false
2121
default: "local"
2222

23+
outputs:
24+
test_result:
25+
description: "Test result"
26+
value: ${{ steps.bats.outputs.test_result }}
27+
2328
runs:
2429
using: composite
2530
steps:
@@ -60,5 +65,6 @@ runs:
6065
if: inputs.debug_enabled == 'true'
6166

6267
- name: Run BATS
63-
run: bats tests --filter-tags ${{ inputs.test_type }}
68+
id: bats
69+
run: echo "test_result=$(bats tests -F tap --filter-tags ${{ inputs.test_type }})"
6470
shell: bash

0 commit comments

Comments
 (0)