Skip to content

pool: Simplify code calculating rewards payments. #839

pool: Simplify code calculating rewards payments.

pool: Simplify code calculating rewards payments. #839

Workflow file for this run

name: Build and Test
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
name: Go CI
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.20', '1.21']
services:
postgres:
image: postgres:16.0
env:
POSTGRES_USER: dcrpooluser
POSTGRES_PASSWORD: 12345
POSTGRES_DB: dcrpooltestdb
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
- name: Install Linters
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2"
- name: Build
run: go build ./...
- name: Test
run: |
./run_tests.sh