Skip to content

Commit

Permalink
github: run LiT itests & unit tests for current branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ellemouton committed Aug 29, 2024
1 parent 30e7166 commit 7a9af70
Showing 1 changed file with 45 additions and 2 deletions.
47 changes: 45 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,55 @@ jobs:
path: logs-itest-postgres.zip
retention-days: 5

# Notify about the completion of all coverage collecting jobs.
########################
# Trigger LiTd integration tests
########################
trigger-lit-tests:
name: trigger LiT itests
runs-on: ubuntu-latest

steps:
- name: git checkout
uses: actions/checkout@v3

- name: Setup go environment
uses: ./.github/actions/setup-go

- name: Clone Lit repository
run: git clone https://github.com/lightninglabs/lightning-terminal.git

- name: Update go.mod to use the local Tap repository
working-directory: ./lightning-terminal
run: |
go mod edit -replace=github.com/lightning-labs/taproot-assets=../
go mod tidy
- name: Install yarn
run: npm install -g yarn

- name: setup nodejs
uses: ./lightning-terminal/.github/actions/setup-node
with:
node-version: 16.x

- name: install LiT app dependencies
working-directory: ./lightning-terminal/app
run: yarn

- name: Run LiT itests
working-directory: ./lightning-terminal
run: make itest

- name: Run LiT unit tests
working-directory: ./lightning-terminal
run: make unit

# Notify about the completion of all coverage collecting jobs.
finish:
if: ${{ always() }}
needs: [unit-test]
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
parallel-finished: true

0 comments on commit 7a9af70

Please sign in to comment.