diff --git a/.github/workflows/e2e-integration-test.yml b/.github/workflows/e2e-integration-test.yml index a5020c42..798c03bb 100644 --- a/.github/workflows/e2e-integration-test.yml +++ b/.github/workflows/e2e-integration-test.yml @@ -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` diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index cad9faa0..f3f7f27d 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -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 }}"