Skip to content

Commit

Permalink
Add backwards compatibility CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeuw committed Oct 1, 2024
1 parent deb0d26 commit e907ddd
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,67 @@ jobs:
- uses: codecov/codecov-action@v1
with:
file: coverage.txt

compat-test:
runs-on: ubuntu-latest
services:
cloak-server:
image: cbeuw/cloak:latest
options: build/ck-server -c config/ckserver.json --verbosity debug
volumes:
- config:config
ports:
- 80:80
- 443:443
iperf-server:
image: ajoergensen/iperf3:latest
options: --server
ports:
- 5201:5201
steps:
- 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: Restart Cloak server
uses: docker://docker
with:
args: docker restart cloak-server
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.22'
- run: |
make client
build/ck-client -c config/ckclient.json -s cloak-server --verbosity debug &
iperf3 --client 127.0.0.1 -p 1080

0 comments on commit e907ddd

Please sign in to comment.