Skip to content

Commit

Permalink
build: Test against Go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi authored and davecgh committed Mar 8, 2023
1 parent 85f922c commit 07f6a91
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
10 changes: 0 additions & 10 deletions dcrdtest/rpc_harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dcrtest.work
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
go 1.18
go 1.19

use ./dcrdtest

0 comments on commit 07f6a91

Please sign in to comment.