Expand node ci workflow steps
This commit is contained in:
29
.github/workflows/node-ci.yml
vendored
29
.github/workflows/node-ci.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Node CI (Lint)
|
name: Node CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
@@ -15,12 +15,21 @@ on:
|
|||||||
cache_dependency_path:
|
cache_dependency_path:
|
||||||
type: string
|
type: string
|
||||||
default: "pnpm-lock.yaml"
|
default: "pnpm-lock.yaml"
|
||||||
|
format_command:
|
||||||
|
type: string
|
||||||
|
default: "pnpm format:check"
|
||||||
lint_command:
|
lint_command:
|
||||||
type: string
|
type: string
|
||||||
default: "pnpm lint"
|
default: "pnpm lint"
|
||||||
|
typecheck_command:
|
||||||
|
type: string
|
||||||
|
default: "pnpm typecheck"
|
||||||
|
test_command:
|
||||||
|
type: string
|
||||||
|
default: "pnpm test"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
quality:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -47,6 +56,22 @@ jobs:
|
|||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
working-directory: ${{ inputs.working_directory }}
|
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
|
- name: Run lint
|
||||||
|
if: ${{ inputs.lint_command != '' }}
|
||||||
run: ${{ inputs.lint_command }}
|
run: ${{ inputs.lint_command }}
|
||||||
working-directory: ${{ inputs.working_directory }}
|
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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user