Skip to content

Commit

Permalink
fix(ci): go get -> go install
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Jun 4, 2024
1 parent b839458 commit ed5265e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ed5265e

Please sign in to comment.