feat: add build_context input and update build step to change directory

This commit is contained in:
Leandro Costa 2026-03-07 11:11:10 -03:00
parent 9bc6f3ea3e
commit aa49da3631

View file

@ -7,6 +7,11 @@ inputs:
default: test
required: false
build_context:
description: Build context directory (absolute or relative to GITHUB_WORKSPACE)
default: .
required: false
build_action:
description: Name of the build script
default: build
@ -43,6 +48,7 @@ runs:
- name: Build-Node-App Build and Test
shell: sh
run: |
cd ${{ inputs.build_context }}
npm install
npm run ${{ inputs.test_action }}
npm run ${{ inputs.build_action }}