forked from aarani/NOnion
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: introduce HS compat test with TOR client
Upgrade to .NET 6 was necessary to be able to use SocksV5 (which is what tor gives us) as proxy for HttpClient.
- Loading branch information
Showing
3 changed files
with
90 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,14 +10,22 @@ jobs: | |
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: Setup .NET Core SDK 3.1.x | ||
- name: Setup .NET SDK 6.0.x | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: '3.1.x' | ||
dotnet-version: '6.0.x' | ||
- name: Install dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --configuration Release --no-restore | ||
# Please keep in mind that NOnion DOES NOT require tor client to function | ||
# tor client is only installed here for testing purposes. | ||
- name: Install Tor and wait for startup | ||
run: | | ||
sudo apt install tor | ||
echo -e "SOCKSPort 127.0.0.1:9050" | sudo tee -a /etc/tor/torrc | ||
sudo systemctl restart tor | ||
sleep 2m | ||
- name: Test | ||
run: dotnet test --no-restore --verbosity normal | ||
|
||
|
@@ -31,10 +39,10 @@ jobs: | |
submodules: recursive | ||
# needed because of commit-lint, see https://github.com/conventional-changelog/commitlint/issues/3376 | ||
fetch-depth: 0 | ||
- name: Setup .NET SDK 5.0.x | ||
- name: Setup .NET SDK 6.0.x | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: '5.0.x' | ||
dotnet-version: '6.0.x' | ||
- name: Install dependencies | ||
run: dotnet restore | ||
- name: Build | ||
|
@@ -84,10 +92,10 @@ jobs: | |
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: Setup .NET Core SDK 3.1.x | ||
- name: Setup .NET SDK 6.0.x | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: '3.1.x' | ||
dotnet-version: '6.0.x' | ||
- name: Install dependencies | ||
run: dotnet restore | ||
- name: Build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters