ci: Install libpcap in tests workflow #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'true' | |
| token: ${{ secrets.WUTHERY_BOT_TOKEN }} | |
| - name: Setup Rust | |
| run: | | |
| rustup update nightly | |
| rustup default nightly | |
| - name: Install libpcap | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libpcap-dev | |
| - name: Download Proto Files and Install Protoc | |
| uses: ./.github/actions/protos | |
| with: | |
| cdn: ${{ secrets.TEST_PROTOS_CDN }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Download Proto Files and Install Protoc | |
| uses: ./.github/actions/caps | |
| with: | |
| cdn: ${{ secrets.TEST_CAPS_CDN }} | |
| - name: Run Tests | |
| run: cargo test --verbose --package pcap-server |