Skip to content

Commit e2eb677

Browse files
committed
Optimize CI caching and remove duplicate Java workflow
- Delete standalone java-e2e-tests.yml (duplicate of ci.yaml e2e-java) - Add npm cache to e2e-js jobs via setup-node cache option - Consolidate Maven build: mvn clean package + install → single mvn install - Add .github/workflows/ci.yaml and .github/actions/** to push paths so CI validates its own changes when merged to main
1 parent 61f468a commit e2eb677

2 files changed

Lines changed: 7 additions & 83 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
- 'pyproject.toml'
1313
- 'uv.lock'
1414
- 'mypy_allowlist.txt'
15+
- '.github/workflows/ci.yaml'
16+
- '.github/actions/**'
1517
pull_request:
1618
workflow_dispatch:
1719

@@ -366,6 +368,10 @@ jobs:
366368
uses: actions/setup-node@v4
367369
with:
368370
node-version: '20'
371+
cache: 'npm'
372+
cache-dependency-path: |
373+
packages/codeflash/package-lock.json
374+
code_to_optimize/js/*/package-lock.json
369375
370376
- name: Install codeflash npm package dependencies
371377
run: |
@@ -452,17 +458,11 @@ jobs:
452458
- name: Install dependencies
453459
run: uv sync
454460

455-
- name: Build codeflash-runtime JAR
461+
- name: Build and install codeflash-runtime JAR
456462
run: |
457463
cd codeflash-java-runtime
458-
mvn clean package -q -DskipTests
459464
mvn install -q -DskipTests
460465
461-
- name: Verify Java installation
462-
run: |
463-
java -version
464-
mvn --version
465-
466466
- name: Remove .git
467467
if: matrix.remove_git
468468
run: |

.github/workflows/java-e2e-tests.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)