mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-29 10:35:20 +01:00
Add integration tests with testify/suite. Moved some structs outside of controller funcs so we can re-use them in the testing package. Add CI workflow for running tests on every push.
18 lines
506 B
YAML
18 lines
506 B
YAML
name: Integration tests
|
|
on: push
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version: [ 1.16.x ]
|
|
platform: [ ubuntu-latest ]
|
|
runs-on: ${{ matrix.platform }}
|
|
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 |