feat: do automatic bundling make bundle on the CI (#3889)
Co-authored-by: alan <alan@lnbits.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
name: bundle
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
bundle:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
- uses: lnbits/lnbits/.github/actions/prepare@dev
|
||||||
|
with:
|
||||||
|
python-version: "3.10"
|
||||||
|
node-version: "24.x"
|
||||||
|
npm: true
|
||||||
|
- run: make bundle
|
||||||
|
- name: Commit and push bundle changes
|
||||||
|
run: |
|
||||||
|
git config user.name "alan"
|
||||||
|
git config user.email "alan@lnbits.com"
|
||||||
|
git add lnbits/static
|
||||||
|
if git diff --cached --quiet; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
git commit -m "chore: make bundle [skip ci]"
|
||||||
|
git push
|
||||||
@@ -8,7 +8,6 @@ on:
|
|||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
uses: ./.github/workflows/lint.yml
|
uses: ./.github/workflows/lint.yml
|
||||||
|
|
||||||
@@ -98,3 +97,7 @@ jobs:
|
|||||||
uses: ./.github/workflows/jmeter.yml
|
uses: ./.github/workflows/jmeter.yml
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
bundle:
|
||||||
|
needs: [ lint, test-api, test-wallets, test-unit, migration, openapi, regtest, jmeter ]
|
||||||
|
uses: ./.github/workflows/bundle.yml
|
||||||
|
|||||||
@@ -25,18 +25,11 @@ jobs:
|
|||||||
make: pyright
|
make: pyright
|
||||||
npm: true
|
npm: true
|
||||||
|
|
||||||
|
|
||||||
prettier:
|
prettier:
|
||||||
uses: ./.github/workflows/make.yml
|
uses: ./.github/workflows/make.yml
|
||||||
with:
|
with:
|
||||||
make: checkprettier
|
make: checkprettier
|
||||||
npm: true
|
npm: true
|
||||||
|
|
||||||
bundle:
|
|
||||||
uses: ./.github/workflows/make.yml
|
|
||||||
with:
|
|
||||||
make: checkbundle
|
|
||||||
npm: true
|
|
||||||
|
|
||||||
poetry:
|
poetry:
|
||||||
uses: ./.github/workflows/poetry.yml
|
uses: ./.github/workflows/poetry.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user