extend functionality

This commit is contained in:
Thomas Sauter 2025-10-23 09:02:35 +02:00
parent 9239fe16e6
commit e9ceac2b4b
Signed by: thomas.sauter
GPG key ID: 015161F81E6A3C65

View file

@ -18,6 +18,22 @@ on:
required: false
type: string
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:
linting_type_checking:
@ -32,7 +48,7 @@ jobs:
- name: Set up Node.js and Corepack
uses: actions/setup-node@v4
with:
node-version: "22"
node-version: ${{ inputs.NODE_VERSION }}
- name: Enable Corepack
run: |
@ -40,7 +56,7 @@ jobs:
- name: Install dependencies
run: |
yarn install --immutable --inline-builds
${{ inputs.INSTALL_SCRIPT }}
- name: Setup repostitory
run: |
@ -48,11 +64,11 @@ jobs:
- name: Lint source code (eslint)
run: |
yarn run lint --max-warnings=0
${{ inputs.LINT_SCRIPT }}
- name: Static type checking (TypeScript)
run: |
yarn run check-types
${{ inputs.TYPE_CHECKING_SCRIPT }}
- name: Run tests
if: ${{ inputs.TESTS_ENABLED == true }}