Skip to content

LNBits env vars/secrets for tests #63

LNBits env vars/secrets for tests

LNBits env vars/secrets for tests #63

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
all:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, 20]
steps:
- name: Setup TOR
uses: tor-actions/setup-tor@main
with:
daemon: true
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci
- name: Run Tests
env:
TEST_LNBITS_CONFIG: '{"baseUrl":"${{ env.LNBITS_BASE_URL }}","adminKey":"${{ secrets.LNBITS_ADMIN_KEY }}"}'
TEST_LNBITS_BAD_CONFIG: '{"baseUrl":"${{ env.LNBITS_BASE_URL }}","adminKey":"xxx"}'
TEST_LNBITS_ADDINVOICE: '{"amount":500}'
TEST_LNBITS_GETBALANCE: '{}'
run: npm test