mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
chore: clean up codeflash JS workflow (#2499)
## Summary - Normalize quote style to double quotes for YAML consistency - Remove redundant `jest-junit` runtime install step (already in devDependencies) - Simplify codeflash CLI flags: `--all --verbose --yes` → `--yes` ## Test plan - [ ] Verify workflow runs successfully on a test PR touching `js/cf-api/` or `js/cf-webapp/` - [ ] Confirm `npm ci` installs jest-junit from package-lock without the extra install step 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Kevin Turcios <106575910+KRRT7@users.noreply.github.com>
This commit is contained in:
parent
8d987de65c
commit
2887b34d02
1 changed files with 8 additions and 12 deletions
20
.github/workflows/codeflash-js.yaml
vendored
20
.github/workflows/codeflash-js.yaml
vendored
|
|
@ -8,9 +8,9 @@ on:
|
|||
workflow_dispatch:
|
||||
inputs:
|
||||
project:
|
||||
description: 'Project to optimize (cf-api, cf-webapp, or both)'
|
||||
description: "Project to optimize (cf-api, cf-webapp, or both)"
|
||||
required: false
|
||||
default: 'both'
|
||||
default: "both"
|
||||
type: choice
|
||||
options:
|
||||
- both
|
||||
|
|
@ -86,8 +86,8 @@ jobs:
|
|||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
node-version: "20"
|
||||
cache: "npm"
|
||||
cache-dependency-path: js/cf-api/package-lock.json
|
||||
registry-url: https://npm.pkg.github.com
|
||||
scope: "@codeflash-ai"
|
||||
|
|
@ -96,10 +96,6 @@ jobs:
|
|||
working-directory: js/cf-api
|
||||
run: npm ci
|
||||
|
||||
- name: Install jest-junit for test reporting
|
||||
working-directory: js/cf-api
|
||||
run: npm install --save-dev jest-junit
|
||||
|
||||
- name: Set up Python and install Codeflash
|
||||
uses: astral-sh/setup-uv@v7
|
||||
with:
|
||||
|
|
@ -113,7 +109,7 @@ jobs:
|
|||
working-directory: js/cf-api
|
||||
run: |
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
codeflash --all --verbose --yes
|
||||
codeflash --yes
|
||||
|
||||
# Optimize cf-webapp (Vitest)
|
||||
optimize-cf-webapp:
|
||||
|
|
@ -141,8 +137,8 @@ jobs:
|
|||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
node-version: "20"
|
||||
cache: "npm"
|
||||
cache-dependency-path: js/cf-webapp/package-lock.json
|
||||
registry-url: https://npm.pkg.github.com
|
||||
scope: "@codeflash-ai"
|
||||
|
|
@ -164,4 +160,4 @@ jobs:
|
|||
working-directory: js/cf-webapp
|
||||
run: |
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
codeflash --all --verbose --yes
|
||||
codeflash --yes
|
||||
|
|
|
|||
Loading…
Reference in a new issue