diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index acce6176..d67bb962 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -31,6 +31,12 @@ jobs: run: | sudo apt-get update sudo apt-get install bison + - name: Install websocket-bench & gops + env: + GO111MODULE: off + run: | + go install github.com/anycable/websocket-bench@latest + go install github.com/google/gops@latest - uses: ruby/setup-ruby@v1 with: # Use <3.0 since go-mruby's Rakefile has some problems with keyword arguments compatibility @@ -45,12 +51,6 @@ jobs: - run: go mod vendor - name: Build mruby run: bash -c '(cd vendor/github.com/mitchellh/go-mruby && MRUBY_CONFIG=../../../../../../etc/build_config.rb make libmruby.a)' - - name: Install websocket-bench & gops - env: - GO111MODULE: off - run: | - go get -u github.com/anycable/websocket-bench - go get -u github.com/google/gops - name: Build test binary env: BUILD_ARGS: "-race" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index baee2833..4f80ddf0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -137,6 +137,13 @@ jobs: run: | sudo apt-get update sudo apt-get install bison + - name: Install websocket-bench & gops + if: matrix.test_command == 'benchmarks' + env: + GOFLAGS: "" + run: | + go install github.com/anycable/websocket-bench@latest + go install github.com/google/gops@latest - uses: ruby/setup-ruby@v1 with: # Use <3.0 since go-mruby's Rakefile has some problems with keyword arguments compatibility @@ -151,13 +158,6 @@ jobs: - run: go mod vendor - name: Build mruby run: bash -c '(cd vendor/github.com/mitchellh/go-mruby && MRUBY_CONFIG=../../../../../../etc/build_config.rb make libmruby.a)' - - name: Install websocket-bench & gops - if: matrix.test_command == 'benchmarks' - env: - GO111MODULE: off - run: | - go get -u github.com/anycable/websocket-bench - go get -u github.com/google/gops - name: Run tests run: | bundle install