2023-08-24 12:36:37 +02:00
|
|
|
name: LNbits CI
|
2023-10-16 07:41:29 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- dev
|
|
|
|
pull_request:
|
|
|
|
|
2023-08-24 12:36:37 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
uses: ./.github/workflows/lint.yml
|
|
|
|
|
|
|
|
tests:
|
|
|
|
needs: [ lint ]
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: ["3.9", "3.10"]
|
|
|
|
db-url: ["", "postgres://lnbits:lnbits@0.0.0.0:5432/lnbits"]
|
|
|
|
uses: ./.github/workflows/tests.yml
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
|
|
migrations:
|
|
|
|
needs: [ lint ]
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: ["3.9"]
|
|
|
|
uses: ./.github/workflows/tests.yml
|
|
|
|
with:
|
|
|
|
make: test-migration
|
|
|
|
db-name: migration
|
|
|
|
|
|
|
|
openapi:
|
|
|
|
needs: [ lint ]
|
|
|
|
uses: ./.github/workflows/make.yml
|
|
|
|
with:
|
|
|
|
make: openapi
|
|
|
|
|
|
|
|
regtest:
|
|
|
|
needs: [ lint ]
|
|
|
|
uses: ./.github/workflows/regtest.yml
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: ["3.9"]
|
|
|
|
backend-wallet-class: ["LndRestWallet", "LndWallet", "CoreLightningWallet", "CoreLightningRestWallet", "LNbitsWallet", "EclairWallet"]
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
backend-wallet-class: ${{ matrix.backend-wallet-class }}
|