feat: added test script substitution
This commit is contained in:
parent
86c23b7d53
commit
d1564129b6
2 changed files with 13 additions and 6 deletions
6
.github/workflows/lint.yaml
vendored
6
.github/workflows/lint.yaml
vendored
|
|
@ -14,6 +14,10 @@ on:
|
|||
required: false
|
||||
type: string
|
||||
default: yarn run setup
|
||||
TEST_SCRIPT:
|
||||
required: false
|
||||
type: string
|
||||
default: yarn run test --ci --passWithNoTests --coverage
|
||||
|
||||
jobs:
|
||||
linting_type_checking:
|
||||
|
|
@ -53,7 +57,7 @@ jobs:
|
|||
- name: Run tests
|
||||
if: ${{ inputs.TESTS_ENABLED == true }}
|
||||
run: |
|
||||
yarn run test --ci --passWithNoTests --coverage
|
||||
${{ inputs.TEST_SCRIPT }}
|
||||
|
||||
- name: Static code analysis with SonarQube
|
||||
uses: https://github.com/SonarSource/sonarqube-scan-action@v5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue