Merge pull request #1 from endview/codex/nftpf-v0.2.0 #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: CI | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Install networking test dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y iproute2 iptables nftables | |
| - name: Check Bash syntax | |
| run: | | |
| bash -n nftpf.sh | |
| bash -n tests/namespace-integration.sh | |
| - name: Run renderer self-test | |
| run: bash nftpf.sh --self-test | |
| - name: Run isolated nftables integration test | |
| run: sudo bash tests/namespace-integration.sh ./nftpf.sh |