Skip to content

Commit

Permalink
capture packetds
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrence-forooghian committed May 21, 2024
1 parent 7d04326 commit e07fbd2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/test-browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,23 @@ jobs:
sudo cp ~/.mitmproxy/mitmproxy-ca-cert.cer /usr/local/share/ca-certificates/mitmproxy-ca-cert.crt
sudo update-ca-certificates
- name: Install tcpdump
run: sudo apt-get install tcpdump

- name: Run the tests
env:
PLAYWRIGHT_BROWSER: ${{ matrix.browser }}
run: npm run test:playwright
run: |
sudo tcpdump -i any -nn -w packet-capture.pcap &
npm run test:playwright
sudo pkill tcpdump
- name: Upload packet capture
if: always()
uses: actions/upload-artifact@v4
with:
name: packet-capture-${{ matrix.browser }}.pcap
path: packet-capture.pcap

- name: Save interception proxy server logs
if: always()
Expand Down

0 comments on commit e07fbd2

Please sign in to comment.