extend functionality
This commit is contained in:
parent
9239fe16e6
commit
e9ceac2b4b
1 changed files with 20 additions and 4 deletions
24
.github/workflows/lint.yaml
vendored
24
.github/workflows/lint.yaml
vendored
|
|
@ -18,6 +18,22 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: yarn run test --ci --passWithNoTests --coverage
|
default: yarn run test --ci --passWithNoTests --coverage
|
||||||
|
LINT_SCRIPT:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: yarn run lint --max-warnings=0
|
||||||
|
TYPE_CHECKING_SCRIPT:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: yarn run check-types
|
||||||
|
INSTALL_SCRIPT:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: yarn install --immutable --inline-builds
|
||||||
|
NODE_VERSION:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: "24"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linting_type_checking:
|
linting_type_checking:
|
||||||
|
|
@ -32,7 +48,7 @@ jobs:
|
||||||
- name: Set up Node.js and Corepack
|
- name: Set up Node.js and Corepack
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "22"
|
node-version: ${{ inputs.NODE_VERSION }}
|
||||||
|
|
||||||
- name: Enable Corepack
|
- name: Enable Corepack
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -40,7 +56,7 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
yarn install --immutable --inline-builds
|
${{ inputs.INSTALL_SCRIPT }}
|
||||||
|
|
||||||
- name: Setup repostitory
|
- name: Setup repostitory
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -48,11 +64,11 @@ jobs:
|
||||||
|
|
||||||
- name: Lint source code (eslint)
|
- name: Lint source code (eslint)
|
||||||
run: |
|
run: |
|
||||||
yarn run lint --max-warnings=0
|
${{ inputs.LINT_SCRIPT }}
|
||||||
|
|
||||||
- name: Static type checking (TypeScript)
|
- name: Static type checking (TypeScript)
|
||||||
run: |
|
run: |
|
||||||
yarn run check-types
|
${{ inputs.TYPE_CHECKING_SCRIPT }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
if: ${{ inputs.TESTS_ENABLED == true }}
|
if: ${{ inputs.TESTS_ENABLED == true }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue