mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
ci: turn on proto-tests for the CI builds
Add an extra run configuration for the proto-tests. Proto-tests require DEVELOPER=1; enabling EXPERIMENTAL_FEATURES=1 by default ensures that experimental additions are automatically put under test also.
This commit is contained in:
55
.github/workflows/ci.yaml
vendored
55
.github/workflows/ci.yaml
vendored
@@ -59,6 +59,61 @@ jobs:
|
||||
path: report.*
|
||||
if-no-files-found: ignore
|
||||
|
||||
proto-test:
|
||||
name: Protocol Test Config
|
||||
runs-on: ubuntu-20.04
|
||||
needs: [smoke-test]
|
||||
env:
|
||||
DEVELOPER: 1
|
||||
EXPERIMENTAL_FEATURES: 1
|
||||
COMPAT: 0
|
||||
PYTEST_PAR: 2
|
||||
TEST_CMD: "make check-protos"
|
||||
TEST_GROUP: 1
|
||||
TEST_GROUP_COUNT: 1
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
compiler: [gcc]
|
||||
db: [postgres, sqlite3]
|
||||
valgrind: [0, 1]
|
||||
network: [regtest] # FIXME: add liquid-regtest
|
||||
include:
|
||||
- {compiler: clang, db: sqlite3, valgrind: 1}
|
||||
- {compiler: clang, db: postgres, valgrind: 1}
|
||||
- {arch: arm32v7, TARGET_HOST: arm-linux-gnueabihf, valgrind: 1, network: regtest}
|
||||
- {arch: arm64v8, TARGET_HOST: aarch64-linux-gnu, valgrind: 1, network: regtest}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.0.0
|
||||
|
||||
- name: Setup Python 3.6
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.6
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
bash -x .github/scripts/setup.sh
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
ARCH: ${{ matrix.arch }}
|
||||
COMPILER: ${{ matrix.compiler }}
|
||||
DB: ${{ matrix.db }}
|
||||
NETWORK: ${{ matrix.network }}
|
||||
TARGET_HOST: ${{ matrix.TARGET_HOST }}
|
||||
VALGRIND: ${{ matrix.valgrind }}
|
||||
run: |
|
||||
bash -x .github/scripts/build.sh
|
||||
|
||||
- name: Upload Unit Test Results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Junit Report ${{ github.run_number }}.{{ matrix.cfg }}
|
||||
path: report.*
|
||||
|
||||
normal-test:
|
||||
name: Normal Test Config ${{ matrix.cfg }}
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
Reference in New Issue
Block a user