Skip to content

Net http socksproxy with auth #31

Net http socksproxy with auth

Net http socksproxy with auth #31

Workflow file for this run

---
name: CI
on:
push:
branches: '*'
pull_request:
branches: '*'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
services:
services:
socks5:

Check failure on line 19 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 19, Col: 9): Unexpected value 'socks5'
image: serjs/go-socks5-proxy
env:
PROXY_USER: user
PROXY_PASSWORD: password
ports:
- 1080:1080
strategy:
matrix:
ruby: ['3.1', '3.2', '3.3', head]
steps:
- uses: actions/checkout@v4
- name: Install Act dependencies
if: ${{ env.ACT }}
run: |
apt-get update && apt-get install sudo -y # https://github.com/nektos/act/issues/107
- name: Install and setup tor
run: |
sudo apt-get update
sudo apt-get install -y tor
tor --version
sudo sh -c 'echo SocksPort 9050 > /etc/tor/torrc'
sudo sh -c 'echo ControlPort 9051 >> /etc/tor/torrc'
export HashedControlPassword=$(tor --quiet --hash-password "")
sudo sh -c "echo HashedControlPassword $HashedControlPassword >> /etc/tor/torrc"
sudo sh -c 'cat /etc/tor/torrc'
tor --verify-config
# sudo service tor start
# pidof tor
- name: Set up Ruby
uses: ruby/setup-ruby@v1 # https://github.com/ruby/setup-ruby
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install gems
run: |
bundle install
- name: Run tests
run: |
bundle exec rake