Test Transparent Proxy #68
This file contains 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 Transparent Proxy" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 2 * * * | |
env: | |
CI_TOOLS_DIR: "/home/runner/work/kuma/kuma/.ci_tools" | |
IPV6: "true" | |
permissions: | |
contents: read | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: go.mod | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: | | |
${{ env.CI_TOOLS_DIR }} | |
key: ${{ runner.os }}-${{ runner.arch }}-devtools-${{ hashFiles('mk/dependencies/deps.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ runner.arch }}-devtools | |
- run: | | |
make dev/tools | |
- name: "Enable IPv6 for Docker and enable necessary kernel modules for ip6tables" | |
run: | | |
cat <<'EOF' | sudo tee /etc/docker/daemon.json | |
{ | |
"ipv6": true, | |
"fixed-cidr-v6": "2001:db8:1::/64", | |
"dns": ["8.8.8.8"], | |
"dns-search": ["."] | |
} | |
EOF | |
sudo service docker restart | |
sudo modprobe ip6table_nat | |
sudo modprobe ip6table_raw | |
- run: | | |
make test/transparentproxy |