Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build tools (postgres 16.0) #386

Merged
merged 5 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.19', '1.20']
go: ['1.20', '1.21']

services:
postgres:
image: postgres:15.0
image: postgres:16.0
env:
POSTGRES_USER: dcrpooluser
POSTGRES_PASSWORD: 12345
Expand All @@ -27,13 +27,13 @@ jobs:
- 5432:5432
steps:
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 #v4.0.1
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed.

with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed.

- name: Install Linters
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.3"
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed.

- name: Build
run: go build ./...
- name: Test
Expand Down
6 changes: 6 additions & 0 deletions docs/postgres.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ automatically by dcrpool.
CREATE DATABASE
```

Alternatively the test suite can be run against a database created in a Docker container using the following one-liner:

```no-highlight
docker run -d --rm -e POSTGRES_USER=dcrpooluser -e POSTGRES_PASSWORD=12345 -e POSTGRES_DB=dcrpooltestdb -p 5432:5432 postgres:16.0
```

1. Add the database connection details to the dcrpool config file.

```no-highlight
Expand Down