mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-12 01:56:19 -04:00
Merge pull request #2569 from lightpanda-io/e2e-enable-cache
ci: always enable HTTP cache with e2e test
This commit is contained in:
5
.github/workflows/e2e-integration-test.yml
vendored
5
.github/workflows/e2e-integration-test.yml
vendored
@@ -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`
|
||||
|
||||
|
||||
10
.github/workflows/e2e-test.yml
vendored
10
.github/workflows/e2e-test.yml
vendored
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user