Add tests for default inputs and error conditions

This commit is contained in:
mtkennerly 2023-03-28 23:00:51 +08:00
parent 73a9619996
commit ec5b2fc812
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
2 changed files with 37 additions and 2 deletions

View file

@ -21,8 +21,9 @@ jobs:
with:
# This is necessary so that we have the tags.
fetch-depth: 0
- uses: ./
id: dunamai
id: full
with:
install: '1.13.2'
env-var: MY_VERSION
@ -32,4 +33,8 @@ jobs:
run: echo $MY_VERSION from environment variable
- if: matrix.os == 'windows-latest'
run: echo $env:MY_VERSION from environment variable
- run: echo ${{ steps.dunamai.outputs.version }} from outputs
- run: echo ${{ steps.full.outputs.version }} from outputs
- uses: ./
id: minimal
- run: echo ${{ steps.minimal.outputs.version }} from outputs