mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-05 17:05:50 +02:00
.github: use title case in job names
To unify the format used in job names.
This commit is contained in:
95
.github/workflows/main.yml
vendored
95
.github/workflows/main.yml
vendored
@@ -111,7 +111,7 @@ jobs:
|
|||||||
########################
|
########################
|
||||||
check-commits:
|
check-commits:
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
name: check commits
|
name: Check commits
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
@@ -137,7 +137,7 @@ jobs:
|
|||||||
# lint code
|
# lint code
|
||||||
########################
|
########################
|
||||||
lint:
|
lint:
|
||||||
name: lint code
|
name: Lint code
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
@@ -160,7 +160,7 @@ jobs:
|
|||||||
# cross compilation
|
# cross compilation
|
||||||
########################
|
########################
|
||||||
cross-compile:
|
cross-compile:
|
||||||
name: cross compilation
|
name: Cross compilation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
@@ -174,27 +174,27 @@ jobs:
|
|||||||
- name: arm
|
- name: arm
|
||||||
sys: darwin-arm64 freebsd-arm linux-armv6 linux-armv7 linux-arm64 windows-arm
|
sys: darwin-arm64 freebsd-arm linux-armv6 linux-armv7 linux-arm64 windows-arm
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Clean up runner space
|
- name: Clean up runner space
|
||||||
uses: ./.github/actions/cleanup-space
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: setup go ${{ env.GO_VERSION }}
|
- name: Setup go ${{ env.GO_VERSION }}
|
||||||
uses: ./.github/actions/setup-go
|
uses: ./.github/actions/setup-go
|
||||||
with:
|
with:
|
||||||
go-version: '${{ env.GO_VERSION }}'
|
go-version: '${{ env.GO_VERSION }}'
|
||||||
key-prefix: cross-compile
|
key-prefix: cross-compile
|
||||||
use-build-cache: 'no'
|
use-build-cache: 'no'
|
||||||
|
|
||||||
- name: build release for all architectures
|
- name: Build release for all architectures
|
||||||
run: make release sys="${{ matrix.sys }}"
|
run: make release sys="${{ matrix.sys }}"
|
||||||
|
|
||||||
########################
|
########################
|
||||||
# run unit tests
|
# run unit tests
|
||||||
########################
|
########################
|
||||||
unit-test:
|
unit-test:
|
||||||
name: run unit tests
|
name: Run unit tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
# Allow other tests in the matrix to continue if one fails.
|
# Allow other tests in the matrix to continue if one fails.
|
||||||
@@ -211,7 +211,7 @@ jobs:
|
|||||||
- unit-module
|
- unit-module
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@@ -219,29 +219,29 @@ jobs:
|
|||||||
- name: Clean up runner space
|
- name: Clean up runner space
|
||||||
uses: ./.github/actions/cleanup-space
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: fetch and rebase on ${{ github.base_ref }}
|
- name: Fetch and rebase on ${{ github.base_ref }}
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
uses: ./.github/actions/rebase
|
uses: ./.github/actions/rebase
|
||||||
|
|
||||||
- name: git checkout fuzzing seeds
|
- name: Git checkout fuzzing seeds
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: lightninglabs/lnd-fuzz
|
repository: lightninglabs/lnd-fuzz
|
||||||
path: lnd-fuzz
|
path: lnd-fuzz
|
||||||
|
|
||||||
- name: rsync fuzzing seeds
|
- name: Rsync fuzzing seeds
|
||||||
run: rsync -a --ignore-existing lnd-fuzz/ ./
|
run: rsync -a --ignore-existing lnd-fuzz/ ./
|
||||||
|
|
||||||
- name: setup go ${{ env.GO_VERSION }}
|
- name: Setup go ${{ env.GO_VERSION }}
|
||||||
uses: ./.github/actions/setup-go
|
uses: ./.github/actions/setup-go
|
||||||
with:
|
with:
|
||||||
go-version: '${{ env.GO_VERSION }}'
|
go-version: '${{ env.GO_VERSION }}'
|
||||||
key-prefix: unit-test
|
key-prefix: unit-test
|
||||||
|
|
||||||
- name: install bitcoind
|
- name: Install bitcoind
|
||||||
run: ./scripts/install_bitcoind.sh $BITCOIN_VERSION
|
run: ./scripts/install_bitcoind.sh $BITCOIN_VERSION
|
||||||
|
|
||||||
- name: run ${{ matrix.unit_type }}
|
- name: Run ${{ matrix.unit_type }}
|
||||||
run: make ${{ matrix.unit_type }}
|
run: make ${{ matrix.unit_type }}
|
||||||
|
|
||||||
- name: Clean coverage
|
- name: Clean coverage
|
||||||
@@ -263,7 +263,7 @@ jobs:
|
|||||||
# run integration tests with TRANCHES
|
# run integration tests with TRANCHES
|
||||||
########################
|
########################
|
||||||
basic-integration-test:
|
basic-integration-test:
|
||||||
name: basic itests
|
name: Run basic itests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: '!contains(github.event.pull_request.labels.*.name, ''no-itest'')'
|
if: '!contains(github.event.pull_request.labels.*.name, ''no-itest'')'
|
||||||
strategy:
|
strategy:
|
||||||
@@ -280,7 +280,7 @@ jobs:
|
|||||||
- name: neutrino
|
- name: neutrino
|
||||||
args: backend=neutrino cover=1
|
args: backend=neutrino cover=1
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@@ -288,20 +288,20 @@ jobs:
|
|||||||
- name: Clean up runner space
|
- name: Clean up runner space
|
||||||
uses: ./.github/actions/cleanup-space
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: fetch and rebase on ${{ github.base_ref }}
|
- name: Fetch and rebase on ${{ github.base_ref }}
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
uses: ./.github/actions/rebase
|
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
|
||||||
with:
|
with:
|
||||||
go-version: '${{ env.GO_VERSION }}'
|
go-version: '${{ env.GO_VERSION }}'
|
||||||
key-prefix: integration-test
|
key-prefix: integration-test
|
||||||
|
|
||||||
- name: install bitcoind
|
- name: Install bitcoind
|
||||||
run: ./scripts/install_bitcoind.sh $BITCOIN_VERSION
|
run: ./scripts/install_bitcoind.sh $BITCOIN_VERSION
|
||||||
|
|
||||||
- name: run ${{ matrix.name }}
|
- name: Run ${{ matrix.name }}
|
||||||
run: make itest-parallel tranches=${{ env.TRANCHES }} ${{ matrix.args }} shuffleseed=${{ github.run_id }}${{ strategy.job-index }}
|
run: make itest-parallel tranches=${{ env.TRANCHES }} ${{ matrix.args }} shuffleseed=${{ github.run_id }}${{ strategy.job-index }}
|
||||||
|
|
||||||
- name: Clean coverage
|
- name: Clean coverage
|
||||||
@@ -335,7 +335,7 @@ jobs:
|
|||||||
# run integration tests with SMALL_TRANCHES
|
# run integration tests with SMALL_TRANCHES
|
||||||
########################
|
########################
|
||||||
integration-test:
|
integration-test:
|
||||||
name: itests
|
name: Run itests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: '!contains(github.event.pull_request.labels.*.name, ''no-itest'')'
|
if: '!contains(github.event.pull_request.labels.*.name, ''no-itest'')'
|
||||||
strategy:
|
strategy:
|
||||||
@@ -360,7 +360,7 @@ jobs:
|
|||||||
- name: bitcoind-postgres-nativesql-experiment
|
- name: bitcoind-postgres-nativesql-experiment
|
||||||
args: backend=bitcoind dbbackend=postgres nativesql=true tags=test_native_sql
|
args: backend=bitcoind dbbackend=postgres nativesql=true tags=test_native_sql
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@@ -368,20 +368,20 @@ jobs:
|
|||||||
- name: Clean up runner space
|
- name: Clean up runner space
|
||||||
uses: ./.github/actions/cleanup-space
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: fetch and rebase on ${{ github.base_ref }}
|
- name: Fetch and rebase on ${{ github.base_ref }}
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
uses: ./.github/actions/rebase
|
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
|
||||||
with:
|
with:
|
||||||
go-version: '${{ env.GO_VERSION }}'
|
go-version: '${{ env.GO_VERSION }}'
|
||||||
key-prefix: integration-test
|
key-prefix: integration-test
|
||||||
|
|
||||||
- name: install bitcoind
|
- name: Install bitcoind
|
||||||
run: ./scripts/install_bitcoind.sh $BITCOIN_VERSION
|
run: ./scripts/install_bitcoind.sh $BITCOIN_VERSION
|
||||||
|
|
||||||
- name: run ${{ matrix.name }}
|
- name: Run ${{ matrix.name }}
|
||||||
run: make itest-parallel tranches=${{ env.SMALL_TRANCHES }} ${{ matrix.args }} shuffleseed=${{ github.run_id }}${{ strategy.job-index }}
|
run: make itest-parallel tranches=${{ env.SMALL_TRANCHES }} ${{ matrix.args }} shuffleseed=${{ github.run_id }}${{ strategy.job-index }}
|
||||||
|
|
||||||
- name: Clean coverage
|
- name: Clean coverage
|
||||||
@@ -416,29 +416,29 @@ jobs:
|
|||||||
# run windows integration test
|
# run windows integration test
|
||||||
########################
|
########################
|
||||||
windows-integration-test:
|
windows-integration-test:
|
||||||
name: windows itest
|
name: Run windows itest
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
if: '!contains(github.event.pull_request.labels.*.name, ''no-itest'')'
|
if: '!contains(github.event.pull_request.labels.*.name, ''no-itest'')'
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: fetch and rebase on ${{ github.base_ref }}
|
- name: Fetch and rebase on ${{ github.base_ref }}
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
uses: ./.github/actions/rebase
|
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
|
||||||
with:
|
with:
|
||||||
go-version: '${{ env.GO_VERSION }}'
|
go-version: '${{ env.GO_VERSION }}'
|
||||||
key-prefix: integration-test
|
key-prefix: integration-test
|
||||||
|
|
||||||
- name: run itest
|
- name: Run itest
|
||||||
run: make itest-parallel tranches=${{ env.SMALL_TRANCHES }} windows=1 shuffleseed=${{ github.run_id }}
|
run: make itest-parallel tranches=${{ env.SMALL_TRANCHES }} windows=1 shuffleseed=${{ github.run_id }}
|
||||||
|
|
||||||
- name: kill any remaining lnd processes
|
- name: Kill any remaining lnd processes
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: taskkill /IM lnd-itest.exe /T /F
|
run: taskkill /IM lnd-itest.exe /T /F
|
||||||
@@ -460,26 +460,26 @@ jobs:
|
|||||||
# run macOS integration test
|
# run macOS integration test
|
||||||
########################
|
########################
|
||||||
macos-integration-test:
|
macos-integration-test:
|
||||||
name: macOS itest
|
name: Run macOS itest
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
if: '!contains(github.event.pull_request.labels.*.name, ''no-itest'')'
|
if: '!contains(github.event.pull_request.labels.*.name, ''no-itest'')'
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: fetch and rebase on ${{ github.base_ref }}
|
- name: Fetch and rebase on ${{ github.base_ref }}
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
uses: ./.github/actions/rebase
|
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
|
||||||
with:
|
with:
|
||||||
go-version: '${{ env.GO_VERSION }}'
|
go-version: '${{ env.GO_VERSION }}'
|
||||||
key-prefix: integration-test
|
key-prefix: integration-test
|
||||||
|
|
||||||
- name: run itest
|
- name: Run itest
|
||||||
run: make itest-parallel tranches=${{ env.SMALL_TRANCHES }} shuffleseed=${{ github.run_id }}
|
run: make itest-parallel tranches=${{ env.SMALL_TRANCHES }} shuffleseed=${{ github.run_id }}
|
||||||
|
|
||||||
- name: Zip log files on failure
|
- name: Zip log files on failure
|
||||||
@@ -499,7 +499,7 @@ jobs:
|
|||||||
# check pinned dependencies
|
# check pinned dependencies
|
||||||
########################
|
########################
|
||||||
dep-pin:
|
dep-pin:
|
||||||
name: check pinned dependencies
|
name: Check pinned dependencies
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
# Allow other tests in the matrix to continue if one fails.
|
# Allow other tests in the matrix to continue if one fails.
|
||||||
@@ -510,46 +510,46 @@ jobs:
|
|||||||
- github.com/golang/protobuf v1.5.3
|
- github.com/golang/protobuf v1.5.3
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Clean up runner space
|
- name: Clean up runner space
|
||||||
uses: ./.github/actions/cleanup-space
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: ensure dependencies at correct version
|
- name: Ensure dependencies at correct version
|
||||||
run: if ! grep -q "${{ matrix.pinned_dep }}" go.mod; then echo dependency ${{ matrix.pinned_dep }} should not be altered ; exit 1 ; fi
|
run: if ! grep -q "${{ matrix.pinned_dep }}" go.mod; then echo dependency ${{ matrix.pinned_dep }} should not be altered ; exit 1 ; fi
|
||||||
|
|
||||||
########################
|
########################
|
||||||
# check PR updates release notes
|
# check PR updates release notes
|
||||||
########################
|
########################
|
||||||
milestone-check:
|
milestone-check:
|
||||||
name: check release notes updated
|
name: Check release notes updated
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: '!contains(github.event.pull_request.labels.*.name, ''no-changelog'')'
|
if: '!contains(github.event.pull_request.labels.*.name, ''no-changelog'')'
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Clean up runner space
|
- name: Clean up runner space
|
||||||
uses: ./.github/actions/cleanup-space
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: release notes check
|
- name: Release notes check
|
||||||
run: scripts/check-release-notes.sh
|
run: scripts/check-release-notes.sh
|
||||||
|
|
||||||
########################
|
########################
|
||||||
# Backwards Compatibility Test
|
# Backwards Compatibility Test
|
||||||
########################
|
########################
|
||||||
backwards-compatability-test:
|
backwards-compatibility-test:
|
||||||
name: backwards compatability test
|
name: Backwards compatibility test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 🐳 Set up Docker Buildx
|
- name: 🐳 Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: 🛡️ backwards compatibility test
|
- name: 🛡️ Backwards compatibility test
|
||||||
run: make backwards-compat-test
|
run: make backwards-compat-test
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
@@ -594,6 +594,7 @@ jobs:
|
|||||||
|
|
||||||
# Notify about the completion of all coverage collecting jobs.
|
# Notify about the completion of all coverage collecting jobs.
|
||||||
finish:
|
finish:
|
||||||
|
name: Send coverage report
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
needs: [unit-test, basic-integration-test]
|
needs: [unit-test, basic-integration-test]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Reference in New Issue
Block a user