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