mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-05-15 06:22:45 +00:00
Add SOCKS4 support to CI
This commit is contained in:
parent
15703a4823
commit
6d9767db42
4 changed files with 32 additions and 22 deletions
20
.github/workflows/tests.yml
vendored
20
.github/workflows/tests.yml
vendored
|
@ -21,6 +21,22 @@ jobs:
|
|||
with:
|
||||
command: test
|
||||
args: --no-run
|
||||
- env:
|
||||
- name: Populate .env
|
||||
env:
|
||||
DOTENV: ${{ secrets.DOTENV }}
|
||||
run: echo "$DOTENV" > .env && sudo -E /home/runner/.cargo/bin/cargo test
|
||||
run: echo "$DOTENV" > .env
|
||||
- name: Set up runner SSH key
|
||||
run: >-
|
||||
set -o allexport &&
|
||||
source .env &&
|
||||
set +o allexport &&
|
||||
mkdir ~/.ssh &&
|
||||
echo "$TEST_SERVER_PRIVATE_SSH_KEY" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
|
||||
- name: Run tests
|
||||
run: >-
|
||||
set -o allexport &&
|
||||
source .env &&
|
||||
set +o allexport &&
|
||||
ssh -N -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -D 1080 "$TEST_SERVER_SSH_DST" &
|
||||
while ! nc -z 127.0.0.1 1080; do sleep 1; done &&
|
||||
sudo -E /home/runner/.cargo/bin/cargo test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue