Skip to content

feat: update look and feel of extension page (#781) #2204

feat: update look and feel of extension page (#781)

feat: update look and feel of extension page (#781) #2204

Workflow file for this run

name: LNbits Extension CI
on:
push:
branches:
- main
pull_request:
jobs:
validate-json:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: json-syntax-check
uses: limitusus/json-syntax-check@v1
with:
pattern: "\\.json$"
check-json:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: pip install Pillow requests
- name: Run check.py
run: python check.py
jmeter:
needs: [validate-json, check-json]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: false
python-version: "3.10"
- name: create logs and reports dir
run: |
mkdir logs
mkdir reports
- name: setup java version
run: |
update-java-alternatives --list
sudo update-java-alternatives --set /usr/lib/jvm/temurin-8-jdk-amd64
java -version
- name: install jmeter
env:
JAVA_HOME: /usr/lib/jvm/temurin-8-jdk-amd64
run: |
make install-jmeter
- name: start mirror server
env:
JAVA_HOME: /usr/lib/jvm/temurin-8-jdk-amd64
run: |
make start-mirror-server
- name: Setup LNbits and run
env:
LNBITS_ADMIN_UI: true
DEBUG: true
AUTH_HTTPS_ONLY: false
LNBITS_EXTENSIONS_DEFAULT_INSTALL: "watchonly, satspay, tipjar, tpos, lnurlp, withdraw"
LNBITS_EXTENSIONS_MANIFESTS: "https://raw.githubusercontent.com/lnbits/lnbits-extensions/${{ github.head_ref || github.ref_name }}/extensions.json"
LNBITS_BACKEND_WALLET_CLASS: FakeWallet
run: |
git clone https://github.com/lnbits/lnbits.git
cd lnbits
git checkout dev
uv sync --locked --all-extras --dev
uv run lnbits &
sleep 10
- name: run jmx scripts
env:
EXTENSIONS_MANIFEST_PATH: "/lnbits/lnbits-extensions/${{ github.head_ref || github.ref_name }}/extensions.json"
JAVA_HOME: /usr/lib/jvm/temurin-8-jdk-amd64
run: |
make test
- name: log results
if: ${{ always() }}
run: |
# catch up time for lnbits
sleep 1
cat lnbits/data/logs/debug.log
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: jmeter-test-results
path: |
reports/
logs/
lnbits/data/logs/