Skip to content

Commit 72b93f8

Browse files
authored
Merge pull request #1112 from ellemouton/triggerLiTCI
github: run LiT itests & unit tests as part of CI
2 parents 0551a3f + eb99fa5 commit 72b93f8

File tree

1 file changed

+45
-2
lines changed

1 file changed

+45
-2
lines changed

.github/workflows/main.yaml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,55 @@ jobs:
291291
path: logs-itest-postgres.zip
292292
retention-days: 5
293293

294-
# Notify about the completion of all coverage collecting jobs.
294+
########################
295+
# Run LiTd tests
296+
########################
297+
run-lit-tests:
298+
name: run LiT tests
299+
runs-on: ubuntu-latest
300+
301+
steps:
302+
- name: git checkout
303+
uses: actions/checkout@v3
304+
305+
- name: Setup go environment
306+
uses: ./.github/actions/setup-go
307+
308+
- name: Clone Lit repository
309+
run: git clone https://github.com/lightninglabs/lightning-terminal.git
310+
311+
- name: Update go.mod to use the local Tap repository
312+
working-directory: ./lightning-terminal
313+
run: |
314+
go mod edit -replace=github.com/lightning-labs/taproot-assets=../
315+
go mod tidy
316+
317+
- name: Install yarn
318+
run: npm install -g yarn
319+
320+
- name: setup nodejs
321+
uses: ./lightning-terminal/.github/actions/setup-node
322+
with:
323+
node-version: 16.x
324+
325+
- name: install LiT app dependencies
326+
working-directory: ./lightning-terminal/app
327+
run: yarn
328+
329+
- name: Run LiT itests
330+
working-directory: ./lightning-terminal
331+
run: make itest
332+
333+
- name: Run LiT unit tests
334+
working-directory: ./lightning-terminal
335+
run: make unit
336+
337+
# Notify about the completion of all coverage collecting jobs.
295338
finish:
296339
if: ${{ always() }}
297340
needs: [unit-test]
298341
runs-on: ubuntu-latest
299342
steps:
300343
- uses: shogo82148/actions-goveralls@v1
301344
with:
302-
parallel-finished: true
345+
parallel-finished: true

0 commit comments

Comments
 (0)