feat: add build_context input and update build step to change directory
This commit is contained in:
parent
9bc6f3ea3e
commit
aa49da3631
1 changed files with 6 additions and 0 deletions
|
|
@ -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 }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue