Skip to content

Commit d92c9de

Browse files
coopernetesclaude
andcommitted
ci: add e2e test job to CI workflow
Runs e2eTest as a separate job on push/PR to main and jetty branches. Unit tests (build-and-test) still run on every branch push. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8631544 commit d92c9de

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,32 @@ jobs:
2828
name: test-reports
2929
path: "**/build/reports/tests/test/"
3030
retention-days: 14
31+
32+
e2e-test:
33+
runs-on: ubuntu-latest
34+
# E2E tests spin up containers; only run on push/PR to the main branches
35+
# to avoid burning minutes on every feature branch commit.
36+
if: >
37+
github.ref == 'refs/heads/main' ||
38+
github.ref == 'refs/heads/jetty' ||
39+
github.event_name == 'pull_request'
40+
41+
steps:
42+
- uses: actions/checkout@v4
43+
44+
- uses: actions/setup-java@v4
45+
with:
46+
distribution: temurin
47+
java-version: 21
48+
cache: gradle
49+
50+
- name: Run e2e tests
51+
run: ./gradlew :jgit-proxy-server:e2eTest
52+
53+
- name: Publish e2e test results
54+
if: always()
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: e2e-test-reports
58+
path: "jgit-proxy-server/build/reports/tests/e2eTest/"
59+
retention-days: 14

0 commit comments

Comments
 (0)