forked from lightningnetwork/lnd
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # .circleci/config.yml # Makefile # README.md # build/version.go # go.mod # go.sum # linuxamd64.Dockerfile # linuxarm32v7.Dockerfile # linuxarm64v8.Dockerfile
- Loading branch information
Showing
397 changed files
with
30,561 additions
and
14,781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: "Rebase on to the PR target base branch" | ||
description: "A reusable workflow that's used to rebase the PR code on to the target base branch." | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: fetch and rebase on ${{ github.base_ref }} | ||
shell: bash | ||
run: | | ||
git remote add upstream https://github.com/${{ github.repository }} | ||
git fetch upstream ${{ github.base_ref }}:refs/remotes/upstream/${{ github.base_ref }} | ||
export GIT_COMMITTER_EMAIL="[email protected]" | ||
export GIT_COMMITTER_NAME="LND CI" | ||
git rebase upstream/${{ github.base_ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,14 +22,16 @@ defaults: | |
|
||
env: | ||
BITCOIN_VERSION: "27" | ||
|
||
TRANCHES: 8 | ||
|
||
# If you change this value, please change it in the following files as well: | ||
# /.travis.yml | ||
# /Dockerfile | ||
# /dev.Dockerfile | ||
# /make/builder.Dockerfile | ||
# /.github/workflows/release.yml | ||
GO_VERSION: 1.22.3 | ||
GO_VERSION: 1.22.5 | ||
|
||
jobs: | ||
######################## | ||
|
@@ -101,12 +103,7 @@ jobs: | |
go-version: '${{ env.GO_VERSION }}' | ||
|
||
- name: fetch and rebase on ${{ github.base_ref }} | ||
run: | | ||
git remote add upstream https://github.com/${{ github.repository }} | ||
git fetch upstream | ||
export GIT_COMMITTER_EMAIL="[email protected]" | ||
export GIT_COMMITTER_NAME="LND CI" | ||
git rebase upstream/${{ github.base_ref }} | ||
uses: ./.github/actions/rebase | ||
|
||
- name: check commits | ||
run: scripts/check-each-commit.sh upstream/${{ github.base_ref }} | ||
|
@@ -198,6 +195,12 @@ jobs: | |
steps: | ||
- name: git checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: fetch and rebase on ${{ github.base_ref }} | ||
if: github.event_name == 'pull_request' | ||
uses: ./.github/actions/rebase | ||
|
||
- name: git checkout fuzzing seeds | ||
uses: actions/checkout@v3 | ||
|
@@ -264,6 +267,12 @@ jobs: | |
steps: | ||
- name: git checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: fetch and rebase on ${{ github.base_ref }} | ||
if: github.event_name == 'pull_request' | ||
uses: ./.github/actions/rebase | ||
|
||
- name: setup go ${{ env.GO_VERSION }} | ||
uses: ./.github/actions/setup-go | ||
|
@@ -275,7 +284,7 @@ jobs: | |
run: ./scripts/install_bitcoind.sh $BITCOIN_VERSION | ||
|
||
- name: run ${{ matrix.name }} | ||
run: make itest-parallel ${{ matrix.args }} | ||
run: make itest-parallel tranches=${{ env.TRANCHES }} ${{ matrix.args }} | ||
|
||
- name: Send coverage | ||
if: ${{ contains(matrix.args, 'cover=1') }} | ||
|
@@ -309,6 +318,12 @@ jobs: | |
steps: | ||
- name: git checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: fetch and rebase on ${{ github.base_ref }} | ||
if: github.event_name == 'pull_request' | ||
uses: ./.github/actions/rebase | ||
|
||
- name: setup go ${{ env.GO_VERSION }} | ||
uses: ./.github/actions/setup-go | ||
|
@@ -317,7 +332,7 @@ jobs: | |
key-prefix: integration-test | ||
|
||
- name: run itest | ||
run: make itest-parallel windows=1 | ||
run: make itest-parallel tranches=${{ env.TRANCHES }} windows=1 | ||
|
||
- name: kill any remaining lnd processes | ||
if: ${{ failure() }} | ||
|
@@ -347,6 +362,12 @@ jobs: | |
steps: | ||
- name: git checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: fetch and rebase on ${{ github.base_ref }} | ||
if: github.event_name == 'pull_request' | ||
uses: ./.github/actions/rebase | ||
|
||
- name: setup go ${{ env.GO_VERSION }} | ||
uses: ./.github/actions/setup-go | ||
|
@@ -361,7 +382,7 @@ jobs: | |
mv bitcoin-${BITCOIN_VERSION}.0 /tmp/bitcoin | ||
- name: run itest | ||
run: PATH=$PATH:/tmp/bitcoin/bin make itest-parallel backend=bitcoind | ||
run: PATH=$PATH:/tmp/bitcoin/bin make itest-parallel tranches=${{ env.TRANCHES }} backend=bitcoind | ||
|
||
- name: Zip log files on failure | ||
if: ${{ failure() }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.