diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 532df105a..f0565fa00 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,7 +61,7 @@ jobs: cargo build --verbose - name: Test Prequisites run: | - pip3 install Flask && cd integration && python3 server.py & + pip3 install Flask && cd integration && python3 server.py >server.log 2>&1 & wget https://snapshots.mitmproxy.org/5.2/mitmproxy-5.2-linux.tar.gz -O - | tar -xz && ./mitmdump -p 8888 --modify-header "/From-Proxy/Hello" & - name: Run Tests run: | @@ -69,7 +69,14 @@ jobs: - name: Run Integration Tests run: | export PATH="$PWD/target/debug:$PATH" - integration/integration.py + cd integration + ./integration.py + - name: Archive production artifacts + uses: actions/upload-artifact@v2 + if: ${{ always() }} + with: + name: tests-ubuntu-${{ matrix.rust }}-artifacts + path: integration/server.log test-osx: runs-on: macos-latest @@ -94,7 +101,7 @@ jobs: cargo build --verbose - name: Test Prequisites run: | - pip3 install Flask && cd integration && python3 server.py & + pip3 install Flask && cd integration && python3 server.py >server.log 2>&1 & wget https://snapshots.mitmproxy.org/5.2/mitmproxy-5.2-osx.tar.gz -O - | tar -xz && ./mitmdump -p 8888 --modify-header "/From-Proxy/Hello" & - name: Run Tests run: | @@ -102,4 +109,11 @@ jobs: - name: Run Integration Tests run: | export PATH="$PWD/target/debug:$PATH" - integration/integration.py + cd integration + ./integration.py + - name: Archive production artifacts + uses: actions/upload-artifact@v2 + if: ${{ always() }} + with: + name: tests-osx-${{ matrix.rust }}-artifacts + path: integration/server.log diff --git a/integration/tests/cookie_file.txt b/integration/tests/cookie_file.cookies similarity index 100% rename from integration/tests/cookie_file.txt rename to integration/tests/cookie_file.cookies diff --git a/integration/tests/cookie_file.html b/integration/tests/cookie_file.html index d51dfa293..be9b11de0 100644 --- a/integration/tests/cookie_file.html +++ b/integration/tests/cookie_file.html @@ -1 +1 @@ -