Skip to content

ditch services

ditch services #120

Workflow file for this run

name: Build and test
on: [ push ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.22' # The Go version to download (if necessary) and use.
- run: go test -race -coverprofile coverage.txt -coverpkg ./... -covermode atomic ./...
- uses: codecov/codecov-action@v1
with:
file: coverage.txt
compat-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.22'
- name: Create configs
run: |
mkdir config
cat << EOF > config/ckclient.json
{
"Transport": "direct",
"ProxyMethod": "ssh",
"EncryptionMethod": "chacha20-poly1305",
"UID": "Q4GAXHVgnDLXsdTpw6bmoQ==",
"PublicKey": "4dae/bF43FKGq+QbCc5P/E/MPM5qQeGIArjmJEHiZxc=",
"ServerName": "cloudflare.com",
"BrowserSig": "firefox",
"NumConn": 4
}
EOF
cat << EOF > config/ckserver.json
{
"ProxyBook": {
"iperf": [
"tcp",
"iperf-server:5201"
]
},
"BindAddr": [
":443",
":80"
],
"BypassUID": [
"Q4GAXHVgnDLXsdTpw6bmoQ=="
],
"RedirAddr": "cloudflare.com",
"PrivateKey": "AAaskZJRPIAbiuaRLHsvZPvE6gzOeSjg+ZRg1ENau0Y="
}
EOF
- name: Start iperf3 server
run: docker run -d -p 5201:5201 --network host ajoergensen/iperf3:latest --server
- name: Start Cloak server
run: docker run -d -p 80:80 -p 443:443 --network host cbeuw/cloak:latest build/ck-server -c config/ckserver.json --verbosity debug
- run: |
make client
build/ck-client -c config/ckclient.json -s cloak-server --verbosity debug &
docker run --network host ajoergensen/iperf3:latest --client 127.0.0.1 -p 1080