Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/frontend-deploy-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ on:
default: '["self-hosted", "ci-e2e"]'

# Build configuration
pre-build-command:
description: 'Command to run before build (e.g., GraphQL codegen)'
type: string
default: ''
build-command:
description: 'Production build command'
type: string
Expand Down Expand Up @@ -290,6 +294,12 @@ jobs:
jarvis-branch: ${{ inputs.jarvis-branch }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Run pre-build command
if: inputs.pre-build-command != ''
run: ${{ inputs.pre-build-command }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Clean dist directory
run: ${{ inputs.clean-command }}

Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/frontend-pr-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ on:
default: '[self-hosted, ci-e2e]'

# Build configuration
pre-build-command:
description: 'Command to run before linting/build (e.g., GraphQL codegen)'
type: string
default: ''
build-command:
description: 'Build command to run'
type: string
Expand Down Expand Up @@ -292,6 +296,15 @@ jobs:
jarvis-branch: ${{ inputs.jarvis-branch }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}

# Runs before linting AND build so that generated files (e.g. GraphQL
# codegen) are available for both TypeScript-aware lint rules and
# build tools like fork-ts-checker-webpack-plugin.
- name: Run pre-build command
if: inputs.pre-build-command != ''
run: ${{ inputs.pre-build-command }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Run linting
if: inputs.run-linting
run: ${{ inputs.lint-command }}
Expand Down