Skip to content

Commit

Permalink
ci: skip utls test
Browse files Browse the repository at this point in the history
  • Loading branch information
uubulb committed Aug 28, 2024
1 parent ded52de commit 830dc2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ jobs:
with:
go-version: "1.20.13"
- name: Unit test
# Skip TestCloudflareDetection here, as most IP addresses of Github's action
# runners have been marked as bot.
run: |
go test -v ./...
- name: Build test
run: |
go build ./cmd/agent
go build -skip TestCloudflareDetection ./cmd/agent
#- name: Run Gosec Security Scanner
# run: |
# go install github.com/securego/gosec/v2/cmd/gosec@v2.19.0
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ jobs:
with:
go-version: "1.20.13"
- name: Unit test
# Skip TestCloudflareDetection here, as most IP addresses of Github's action
# runners have been marked as bot.
run: |
go test -v ./...
go test -skip TestCloudflareDetection -v ./...
#- name: Run Gosec Security Scanner
# run: |
# go install github.com/securego/gosec/v2/cmd/gosec@v2.19.0
Expand Down
2 changes: 1 addition & 1 deletion pkg/utls/roundtripper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
utlsx "github.com/nezhahq/agent/pkg/utls"
)

const url = "https://www.lexusofpembrokepines.com/wp-content/cache/jellyfish-cache/new-vehicles-js.js?mt=1698335265"
const url = "https://www.patreon.com/login"

func TestCloudflareDetection(t *testing.T) {
client := http.DefaultClient
Expand Down

0 comments on commit 830dc2b

Please sign in to comment.