Zeek Tests #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: Zeek Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'zeek/**' | |
| - '.github/workflows/zeek-test.yml' | |
| pull_request: | |
| paths: | |
| - 'zeek/**' | |
| - '.github/workflows/zeek-test.yml' | |
| workflow_dispatch: | |
| repository_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| container: | |
| image: zeek/zeek:8.0.0 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| apt-get update | |
| apt-get install -y python3-pip git cmake build-essential | |
| # btest is distributed as a python package | |
| pip3 install btest --break-system-packages | |
| - name: Build plugin | |
| run: | | |
| cd zeek | |
| ./configure | |
| cd build | |
| make -j$(nproc) | |
| - name: Run btest | |
| run: | | |
| cd zeek/testing | |
| btest -d tests/ |