Skip to content

Commit

Permalink
github: use litd staging branch for itests
Browse files Browse the repository at this point in the history
We actually want to run the litd itests on the staging branch that has
the custom channel tests.
We also can speed up the tests by removing the yarn build for the static
files, since we don't need those for the tests (an empty index.html just
needs to exist for the build to succeed).
  • Loading branch information
guggero committed Sep 5, 2024
1 parent 553fa54 commit 7df46c6
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ env:
GOPATH: /home/runner/work/go

GO_VERSION: '1.22.3'

LITD_ITEST_BRANCH: '0-19-staging'

jobs:
#######################
Expand Down Expand Up @@ -306,29 +308,26 @@ jobs:
uses: ./.github/actions/setup-go

- name: Clone Lit repository
run: git clone https://github.com/lightninglabs/lightning-terminal.git
uses: actions/checkout@v3
with:
repository: lightninglabs/lightning-terminal
ref: ${{ env.LITD_ITEST_BRANCH }}
path: lightning-terminal

- 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: Create dummy static files
run: |
mkdir -p lightning-terminal/app/build
touch lightning-terminal/app/build/index.html
- name: Run LiT itests
working-directory: ./lightning-terminal
run: make itest
run: make itest-only

- name: Run LiT unit tests
working-directory: ./lightning-terminal
Expand All @@ -337,7 +336,7 @@ jobs:
# Notify about the completion of all coverage collecting jobs.
finish:
if: ${{ always() }}
needs: [unit-test]
needs: [ unit-test ]
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
Expand Down

0 comments on commit 7df46c6

Please sign in to comment.