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