Merge pull request #2569 from lightpanda-io/e2e-enable-cache

ci: always enable HTTP cache with e2e test
This commit is contained in:
Pierre Tachoire
2026-05-28 17:58:55 +02:00
committed by GitHub
2 changed files with 12 additions and 3 deletions

View File

@@ -59,10 +59,13 @@ jobs:
- run: chmod a+x ./lightpanda
# Always activate cache
- run: mkdir -p /tmp/lp-cache
- name: run end to end integration tests
continue-on-error: true
run: |
./lightpanda serve --http-proxy ${{ secrets.MASSIVE_PROXY_RESIDENTIAL_US }} --log-level error & echo $! > LPD.pid
./lightpanda serve --http-cache-dir /tmp/lp-cache --http-proxy ${{ secrets.MASSIVE_PROXY_RESIDENTIAL_US }} --log-level error & echo $! > LPD.pid
go run integration/main.go |tee result.log
kill `cat LPD.pid`

View File

@@ -103,10 +103,13 @@ jobs:
- if: matrix.wba == true
run: echo "${{ secrets.WBA_PRIVATE_KEY_PEM }}" > private_key.pem
# Always activate cache
- run: mkdir -p /tmp/lp-cache
- id: args
name: build LP args
run: |
args=""
args="--http-cache-dir /tmp/lp-cache"
[ "${{ matrix.proxy }}" = "true" ] && args="$args --http-proxy http://127.0.0.1:3000"
[ "${{ matrix.robotstxt }}" = "true" ] && args="$args --obey-robots"
[ "${{ matrix.wba }}" = "true" ] && args="$args --web-bot-auth-key-file private_key.pem"
@@ -159,10 +162,13 @@ jobs:
- if: matrix.wba == true
run: echo "${{ secrets.WBA_PRIVATE_KEY_PEM }}" > private_key.pem
# Always activate cache
- run: mkdir -p /tmp/lp-cache
- id: args
name: build LP args
run: |
args=""
args="--http-cache-dir /tmp/lp-cache"
[ "${{ matrix.robotstxt }}" = "true" ] && args="$args --obey-robots"
[ "${{ matrix.wba }}" = "true" ] && args="$args --web-bot-auth-key-file private_key.pem"
[ "${{ matrix.wba }}" = "true" ] && args="$args --web-bot-auth-domain ${{ vars.WBA_DOMAIN }}"