Skip to content

fix: subtract only valid transfers for take home calculation #96

fix: subtract only valid transfers for take home calculation

fix: subtract only valid transfers for take home calculation #96

Workflow file for this run

name: "Run Server Tests"
on:
push:
paths-ignore:
- 'docs/**'
- 'deployments/**'
- '*.md'
- 'client/**'
branches:
- main
- development
- testing/**
workflow_dispatch:
pull_request:
paths-ignore:
- 'docs/**'
- 'deployments/**'
- '*.md'
- 'client/**'
branches:
- main
types: [ opened, synchronize ]
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: go mod download
- name: Run tests with coverage
run: |
make test