Expand node ci workflow steps

This commit is contained in:
estebanthi
2026-01-04 15:44:00 +01:00
parent bb980c9263
commit f481260d7e

View File

@@ -1,4 +1,4 @@
name: Node CI (Lint)
name: Node CI
on:
workflow_call:
@@ -15,12 +15,21 @@ on:
cache_dependency_path:
type: string
default: "pnpm-lock.yaml"
format_command:
type: string
default: "pnpm format:check"
lint_command:
type: string
default: "pnpm lint"
typecheck_command:
type: string
default: "pnpm typecheck"
test_command:
type: string
default: "pnpm test"
jobs:
lint:
quality:
runs-on: ubuntu-latest
permissions:
contents: read
@@ -47,6 +56,22 @@ jobs:
run: pnpm install --frozen-lockfile
working-directory: ${{ inputs.working_directory }}
- name: Run format check
if: ${{ inputs.format_command != '' }}
run: ${{ inputs.format_command }}
working-directory: ${{ inputs.working_directory }}
- name: Run lint
if: ${{ inputs.lint_command != '' }}
run: ${{ inputs.lint_command }}
working-directory: ${{ inputs.working_directory }}
- name: Run typecheck
if: ${{ inputs.typecheck_command != '' }}
run: ${{ inputs.typecheck_command }}
working-directory: ${{ inputs.working_directory }}
- name: Run tests
if: ${{ inputs.test_command != '' }}
run: ${{ inputs.test_command }}
working-directory: ${{ inputs.working_directory }}