mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-10-02 10:53:18 +00:00
fix(ci): run npm test instead of hardcoded npx jest in ci-typescript-cdk
This commit is contained in:
parent
3620c84cbb
commit
93a370bfa8
1 changed files with 2 additions and 2 deletions
4
.github/workflows/ci-typescript-cdk.yaml
vendored
4
.github/workflows/ci-typescript-cdk.yaml
vendored
|
|
@ -32,7 +32,7 @@ on:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
run-tests:
|
run-tests:
|
||||||
description: "Run Jest"
|
description: "Run the package's npm test script (requires a test script in package.json)"
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
run-cdk-synth:
|
run-cdk-synth:
|
||||||
|
|
@ -104,7 +104,7 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
if: ${{ inputs.run-tests }}
|
if: ${{ inputs.run-tests }}
|
||||||
working-directory: ${{ inputs.working-directory }}
|
working-directory: ${{ inputs.working-directory }}
|
||||||
run: npx jest
|
run: npm test
|
||||||
|
|
||||||
- name: CDK synth
|
- name: CDK synth
|
||||||
if: ${{ inputs.run-cdk-synth }}
|
if: ${{ inputs.run-cdk-synth }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue