Skip to content

Commit

Permalink
Remove usage of mockgen (#1591)
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
  • Loading branch information
joshua-kim authored Sep 26, 2024
1 parent 49376bd commit 6a3fd63
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 372 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/hypersdk-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@ concurrency:
cancel-in-progress: true

jobs:
mock-gen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: ./.github/actions/install-go
- shell: bash
run: scripts/mock.gen.sh
- shell: bash
run: scripts/tests.clean.sh

go-mod-tidy:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -90,7 +79,7 @@ jobs:

hypersdk-tests:
runs-on: ubuntu-latest
needs: [mock-gen, go-mod-tidy, hypersdk-lint, hypersdk-unit-tests]
needs: [go-mod-tidy, hypersdk-lint, hypersdk-unit-tests]
outputs:
only_contracts_changed: ${{ steps.check_changes.outputs.only_contracts_changed }}
steps:
Expand Down
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ linters-settings:
deny:
- pkg: "container/list"
desc: github.com/ava-labs/avalanchego/utils/linked should be used instead.
- pkg: "github.com/golang/mock/gomock"
desc: go.uber.org/mock/gomock should be used instead.
- pkg: "github.com/stretchr/testify/assert"
desc: github.com/stretchr/testify/require should be used instead.
- pkg: "io/ioutil"
Expand Down
308 changes: 0 additions & 308 deletions chain/mock_rules.go

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ require (
go.opentelemetry.io/otel/sdk v1.22.0
go.opentelemetry.io/otel/trace v1.22.0
go.uber.org/atomic v1.11.0
go.uber.org/mock v0.4.0
go.uber.org/zap v1.26.0
golang.org/x/crypto v0.21.0
golang.org/x/exp v0.0.0-20231127185646-65229373498e
Expand Down Expand Up @@ -140,6 +139,7 @@ require (
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.22.0 // indirect
go.opentelemetry.io/otel/metric v1.22.0 // indirect
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
go.uber.org/mock v0.4.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/net v0.23.0 // indirect
golang.org/x/sys v0.18.0 // indirect
Expand Down
Loading

0 comments on commit 6a3fd63

Please sign in to comment.