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:
mohammed ahmed 2026-04-01 11:23:57 +02:00 committed by GitHub
parent 8d987de65c
commit 2887b34d02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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