Feature: DNAT action support in preset schema #15
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: Test firewall-bridge | |
| on: | |
| push: | |
| branches: | |
| - 'dev/firewall-bridge' | |
| paths-ignore: | |
| - '.github/**' | |
| workflow_call: | |
| permissions: | |
| contents: read | |
| actions: read | |
| jobs: | |
| test-rust: | |
| name: Rust tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden runner | |
| uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Build dev container | |
| run: dev/build.sh | |
| - name: Run cargo test | |
| run: dev/cargo.sh test --lib --verbose | |
| test-python: | |
| name: Python unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden runner | |
| uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: '3.12' | |
| - name: Install host dependencies | |
| run: pip install docker | |
| - name: Run Python unit tests | |
| run: python tests/runner.py | |
| e2e: | |
| name: E2E — Multihop | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden runner | |
| uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: '3.12' | |
| - name: Install host dependencies | |
| run: pip install docker | |
| - name: Fetch compose-bridge | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: bash fetch_compose_bridge.sh | |
| - name: Run E2E tests | |
| run: python e2e_tests/runner.py |