Merge pull request #8829 from ellemouton/rebaseItestBeforeRun
.github: rebase before running itests & unit tests
This commit is contained in:
2 files changed
+40
-6
No files matched your search
@@ -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="lnd-ci@example.com"
|
||||||
|
export GIT_COMMITTER_NAME="LND CI"
|
||||||
|
git rebase upstream/${{ github.base_ref }}
|
||||||
@@ -103,12 +103,7 @@ jobs:
|
|||||||
go-version: '${{ env.GO_VERSION }}'
|
go-version: '${{ env.GO_VERSION }}'
|
||||||
|
|
||||||
- name: fetch and rebase on ${{ github.base_ref }}
|
- name: fetch and rebase on ${{ github.base_ref }}
|
||||||
run: |
|
uses: ./.github/actions/rebase
|
||||||
git remote add upstream https://github.com/${{ github.repository }}
|
|
||||||
git fetch upstream
|
|
||||||
export GIT_COMMITTER_EMAIL="lnd-ci@example.com"
|
|
||||||
export GIT_COMMITTER_NAME="LND CI"
|
|
||||||
git rebase upstream/${{ github.base_ref }}
|
|
||||||
|
|
||||||
- name: check commits
|
- name: check commits
|
||||||
run: scripts/check-each-commit.sh upstream/${{ github.base_ref }}
|
run: scripts/check-each-commit.sh upstream/${{ github.base_ref }}
|
||||||
@@ -200,6 +195,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v3
|
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
|
- name: git checkout fuzzing seeds
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -266,6 +267,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v3
|
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 }}
|
- name: setup go ${{ env.GO_VERSION }}
|
||||||
uses: ./.github/actions/setup-go
|
uses: ./.github/actions/setup-go
|
||||||
@@ -311,6 +318,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v3
|
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 }}
|
- name: setup go ${{ env.GO_VERSION }}
|
||||||
uses: ./.github/actions/setup-go
|
uses: ./.github/actions/setup-go
|
||||||
@@ -349,6 +362,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v3
|
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 }}
|
- name: setup go ${{ env.GO_VERSION }}
|
||||||
uses: ./.github/actions/setup-go
|
uses: ./.github/actions/setup-go
|
||||||
|
|||||||
Reference in new issue
Block a user