From 07f6a9120a0e54da2275b54a2cb2031b2d6d0721 Mon Sep 17 00:00:00 2001 From: David Hill Date: Tue, 7 Mar 2023 12:15:13 -0500 Subject: [PATCH] build: Test against Go 1.20 --- .github/workflows/go.yml | 8 ++++---- dcrdtest/rpc_harness.go | 10 ---------- dcrtest.work | 2 +- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b0f6d07..40dd5ba 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -8,17 +8,17 @@ jobs: name: Go CI strategy: matrix: - go: [1.18, 1.19] + go: ["1.19", "1.20"] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: # Prepare env. - name: Set up Go - uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a #v3.2.1 + uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 #v3.5.0 with: go-version: ${{ matrix.go }} - name: Install Linters - run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.0" + run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.51.2" shell: bash - name: Set git config to please linters run: | @@ -27,6 +27,6 @@ jobs: # Test repository. - name: Check out source - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2 + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c #v3.3.0 - name: Test run: sh ./run_tests.sh diff --git a/dcrdtest/rpc_harness.go b/dcrdtest/rpc_harness.go index ecec718..0e2da6b 100644 --- a/dcrdtest/rpc_harness.go +++ b/dcrdtest/rpc_harness.go @@ -23,16 +23,6 @@ import ( "github.com/decred/dcrd/wire" ) -const ( - // These constants define the minimum and maximum p2p and rpc port - // numbers used by a test harness. The min port is inclusive while the - // max port is exclusive. - minPeerPort = 10000 - maxPeerPort = 35000 - minRPCPort = maxPeerPort - maxRPCPort = 60000 -) - var ( // XXX these variables are accessed in what should be accessor // functions yet it is all global diff --git a/dcrtest.work b/dcrtest.work index 698b66f..87777ea 100644 --- a/dcrtest.work +++ b/dcrtest.work @@ -1,3 +1,3 @@ -go 1.18 +go 1.19 use ./dcrdtest