Skip to content

Commit 3f1e643

Browse files
committed
Setup tor for testing workflow
1 parent 1db9edb commit 3f1e643

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/testing.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
with:
3434
go-version: ${{ matrix.go }}
3535

36+
- name: Set up Tor
37+
uses: tor-actions/setup-tor@main
38+
3639
- name: Check out code into the Go module directory
3740
uses: actions/checkout@v2
3841
with:
@@ -42,7 +45,18 @@ jobs:
4245
run: |
4346
go get -v -t -d ./...
4447
45-
- name: Run test
48+
- name: Run test with Tor standalone
49+
run: |
50+
make test
51+
make test-cover
52+
53+
- name: Set up Tor
54+
uses: tor-actions/setup-tor@main
55+
with:
56+
daemon: true
57+
port: 9050
58+
59+
- name: Run test with Tor daemon
4660
run: |
4761
make test
4862
make test-cover

0 commit comments

Comments
 (0)