Just isntall node.
This commit is contained in:
@@ -44,26 +44,24 @@ runs:
|
|||||||
uses: https://github.com/actions/setup-node@v4
|
uses: https://github.com/actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.nodeVersion }}
|
node-version: ${{ inputs.nodeVersion }}
|
||||||
cache: npm
|
# - name: "Install dependencies"
|
||||||
cache-dependency-path: ${{ inputs.workingDirectory }}/package-lock.json
|
# run: npm ci
|
||||||
- name: "Install dependencies"
|
# working-directory: ${{ inputs.workingDirectory }}
|
||||||
run: npm ci
|
# shell: bash
|
||||||
working-directory: ${{ inputs.workingDirectory }}
|
# - name: "Run tests"
|
||||||
shell: bash
|
# run: ${{ inputs.testCommand }}
|
||||||
- name: "Run tests"
|
# working-directory: ${{ inputs.workingDirectory }}
|
||||||
run: ${{ inputs.testCommand }}
|
# shell: bash
|
||||||
working-directory: ${{ inputs.workingDirectory }}
|
# - name: "Run tests with coverage"
|
||||||
shell: bash
|
# if: ${{ inputs.runCoverage == 'true' }}
|
||||||
- name: "Run tests with coverage"
|
# run: ${{ inputs.coverageCommand }}
|
||||||
if: ${{ inputs.runCoverage == 'true' }}
|
# working-directory: ${{ inputs.workingDirectory }}
|
||||||
run: ${{ inputs.coverageCommand }}
|
# shell: bash
|
||||||
working-directory: ${{ inputs.workingDirectory }}
|
# - name: "Upload test artifacts"
|
||||||
shell: bash
|
# if: ${{ inputs.uploadArtifacts == 'true' && always() }}
|
||||||
- name: "Upload test artifacts"
|
# uses: https://github.com/ChristopherHX/gitea-upload-artifact@v4
|
||||||
if: ${{ inputs.uploadArtifacts == 'true' && always() }}
|
# with:
|
||||||
uses: https://github.com/ChristopherHX/gitea-upload-artifact@v4
|
# name: ${{ inputs.artifactName }}
|
||||||
with:
|
# path: ${{ inputs.workingDirectory }}/${{ inputs.coverageDirectory }}
|
||||||
name: ${{ inputs.artifactName }}
|
# if-no-files-found: warn
|
||||||
path: ${{ inputs.workingDirectory }}/${{ inputs.coverageDirectory }}
|
# retention-days: ${{ inputs.retention-days }}
|
||||||
if-no-files-found: warn
|
|
||||||
retention-days: ${{ inputs.retention-days }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user