Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
* text=auto

# Path-based git attributes
# https://git-scm.com/docs/gitattributes

# Ignore all test and documentation with "export-ignore".
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/example.php export-ignore
/phpunit.xml.dist export-ignore
/tests export-ignore
45 changes: 45 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Tests

on: ['push', 'pull_request']

jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
php: ['7.3', '7.4', '8.0', '8.1']

name: PHP ${{ matrix.php }} - ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
coverage: none

- name: Setup Tor
uses: tor-actions/setup-tor@main
with:
tor-version: '0.4.6-rc7'
stable: true
daemon: true
config: |
ControlPort 9051
CookieAuthentication 0

- name: Setup Problem Matches
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install PHP dependencies
run: composer install --no-interaction --no-progress --ansi

- name: Unit Tests
run: vendor/bin/phpunit --colors=always
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# GuzzleTor
[![Build Status](https://travis-ci.org/megahertz/guzzle-tor.svg?branch=master)](https://travis-ci.org/megahertz/guzzle-tor)

[![Build Status](https://img.shields.io/github/workflow/status/megahertz/guzzle-tor/Tests.svg?style=flat-square)](https://github.com/megahertz/guzzle-tor/actions)

This [Guzzle](https://github.com/guzzle/guzzle) middleware allows to use Tor client as a proxy

Expand Down