diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 000000000000..dced6220e3ae --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,28 @@ +name: Run unit tests on Linux + +on: + push: + branches: [ main ] + pull_request: + workflow_dispatch: + +env: + CGO_CFLAGS_ALLOW: "-O -D__BLST_PORTABLE__" + CGO_CFLAGS: "-O -D__BLST_PORTABLE__" + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.20', '1.21.x' ] + # goarch: [amd64, arm64] + + steps: + - uses: actions/checkout@v4 + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + - name: Run unit tests + run: go test -short ./accounts ./cmd/geth ./core ./core/types ./core/vm ./eth/... ./internal/ethapi/... ./miner ./params ./suave/... diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 0c673d15f168..000000000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: i386 linux tests - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - workflow_dispatch: - -jobs: - build: - runs-on: self-hosted - steps: - - uses: actions/checkout@v2 - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.21.4 - - name: Run tests - run: go test -short ./... - env: - GOOS: linux - GOARCH: 386 diff --git a/cmd/geth/config.go b/cmd/geth/config.go index d1cde3766e2f..d29a8cfc540b 100644 --- a/cmd/geth/config.go +++ b/cmd/geth/config.go @@ -118,7 +118,7 @@ func defaultNodeConfig() node.Config { cfg.Name = clientIdentifier cfg.Version = params.VersionWithCommit(git.Commit, git.Date) cfg.HTTPModules = append(cfg.HTTPModules, "eth", "suavex") - cfg.WSModules = append(cfg.WSModules, "eth") + cfg.WSModules = append(cfg.WSModules, "eth", "suavex") cfg.IPCPath = "geth.ipc" return cfg } diff --git a/cmd/geth/consolecmd_test.go b/cmd/geth/consolecmd_test.go index ef6ef5f28836..1e28265e9d4b 100644 --- a/cmd/geth/consolecmd_test.go +++ b/cmd/geth/consolecmd_test.go @@ -30,8 +30,8 @@ import ( ) const ( - ipcAPIs = "admin:1.0 clique:1.0 debug:1.0 engine:1.0 eth:1.0 miner:1.0 net:1.0 rpc:1.0 txpool:1.0 web3:1.0" - httpAPIs = "eth:1.0 net:1.0 rpc:1.0 web3:1.0" + ipcAPIs = "admin:1.0 clique:1.0 debug:1.0 engine:1.0 eth:1.0 miner:1.0 net:1.0 rpc:1.0 suavex:1.0 txpool:1.0 web3:1.0" + httpAPIs = "eth:1.0 net:1.0 rpc:1.0 suavex:1.0 web3:1.0" ) // spawns geth with the given command line args, using a set of flags to minimise