diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml deleted file mode 100644 index 42d9a22..0000000 --- a/.github/workflows/push.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Go actions -on: - push: - branches: - - master -jobs: - - build: - name: Build - runs-on: ubuntu-latest - steps: - - - name: Set up Go 1.12 - uses: actions/setup-go@v1 - with: - go-version: 1.12 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - #/home/runner/work/actions - - name: go path - run: | - ls - cd .. - pwd - ls - mkdir -vp go/{src/,bin/,pkg/} - mv go-stress-testing go/src/ - export GOPATH=$(pwd)/go - export GO111MODULE=off - cd go/src/go-stress-testing - pwd - echo $(go env GOPATH)/bin/ - -# - name: Go PATH -# run: export PATH=$PATH:$(go env GOPATH)/bin/ - - - name: ls - run: | - ls - pwd - - - name: run - run: go run main.go -c 1 -n 100 -u https://www.baidu.com/ \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index cb73e23..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Release -on: - create: - tags: - - v* -jobs: - - release: - name: Release on GitHub - runs-on: ubuntu-latest - steps: - - name: Check out chode - uses: actions/checkout@v1 - - - name: Validates GO releaser config - uses: docker://goreleaser/goreleaser:latest - with: - args: check - -#/home/runner/work/actions/actions - - name: go path - run: | - ls - cd .. - pwd - mkdir -vp go/{src/,bin/,pkg/} - mv go-stress-testing go/src/ - export GOPATH=${pwd}/go - export GO111MODULE=off - cd go/src/go-stress-testing - - - name: Go PATH - run: export PATH=$PATH:$(go env GOPATH)/bin - - - name: Create release on GitHub - uses: docker://goreleaser/goreleaser:latest - with: - args: release - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 66b3677..d3148ed 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ go_stress_testing_mac go_stress_testing_linux go_stress_testing_win.exe curl.txt -*curl.txt \ No newline at end of file +*curl.txt +go-stress-testing-mac \ No newline at end of file diff --git a/README.md b/README.md index 969742b..7403f57 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,8 @@ go 实现的压测工具,每个用户用一个协程的方式模拟,最大 - 可以在 mac/linux/windows 不同平台下执行的命令 +- [go-stress-testing][https://github.com/link1st/go-stress-testing/releases] 下载地址 + 参数说明: `-c` 表示并发数 @@ -439,6 +441,7 @@ PTS(Performance Testing Service)是面向所有技术背景人员的云化 ### 4.2 用法 +- [go-stress-testing][https://github.com/link1st/go-stress-testing/releases] 下载地址 - 支持参数: ```