mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-27 09:37:24 +01:00
36 lines
1003 B
YAML
36 lines
1003 B
YAML
name: Integration tests
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches: [ main ]
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version: [ 1.16.x ]
|
|
platform: [ ubuntu-latest ]
|
|
runs-on: ${{ matrix.platform }}
|
|
services:
|
|
postgres:
|
|
image: postgres:latest
|
|
env:
|
|
POSTGRES_DB: lndhub
|
|
POSTGRES_USER: user
|
|
POSTGRES_PASSWORD: password
|
|
ports:
|
|
- 5432:5432
|
|
# Set health checks to wait until postgres has started
|
|
options: >-
|
|
--health-cmd pg_isready
|
|
--health-interval 10s
|
|
--health-timeout 5s
|
|
--health-retries 5
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Run tests
|
|
run: go test -v -cover -coverpkg=./... ./integration_tests |