diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 443dc81..cb7963f 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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 }}