Skip to content

Commit 44b79f4

Browse files
niftyneirustyrussell
authored andcommitted
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.
1 parent 8e0d0c3 commit 44b79f4

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,61 @@ jobs:
5959
path: report.*
6060
if-no-files-found: ignore
6161

62+
proto-test:
63+
name: Protocol Test Config
64+
runs-on: ubuntu-20.04
65+
needs: [smoke-test]
66+
env:
67+
DEVELOPER: 1
68+
EXPERIMENTAL_FEATURES: 1
69+
COMPAT: 0
70+
PYTEST_PAR: 2
71+
TEST_CMD: "make check-protos"
72+
TEST_GROUP: 1
73+
TEST_GROUP_COUNT: 1
74+
strategy:
75+
fail-fast: true
76+
matrix:
77+
compiler: [gcc]
78+
db: [postgres, sqlite3]
79+
valgrind: [0, 1]
80+
network: [regtest] # FIXME: add liquid-regtest
81+
include:
82+
- {compiler: clang, db: sqlite3, valgrind: 1}
83+
- {compiler: clang, db: postgres, valgrind: 1}
84+
- {arch: arm32v7, TARGET_HOST: arm-linux-gnueabihf, valgrind: 1, network: regtest}
85+
- {arch: arm64v8, TARGET_HOST: aarch64-linux-gnu, valgrind: 1, network: regtest}
86+
steps:
87+
- name: Checkout
88+
uses: actions/[email protected]
89+
90+
- name: Setup Python 3.6
91+
uses: actions/setup-python@v2
92+
with:
93+
python-version: 3.6
94+
95+
- name: Install dependencies
96+
run: |
97+
bash -x .github/scripts/setup.sh
98+
99+
- name: Build
100+
env:
101+
ARCH: ${{ matrix.arch }}
102+
COMPILER: ${{ matrix.compiler }}
103+
DB: ${{ matrix.db }}
104+
NETWORK: ${{ matrix.network }}
105+
TARGET_HOST: ${{ matrix.TARGET_HOST }}
106+
VALGRIND: ${{ matrix.valgrind }}
107+
run: |
108+
bash -x .github/scripts/build.sh
109+
110+
- name: Upload Unit Test Results
111+
if: always()
112+
uses: actions/upload-artifact@v2
113+
with:
114+
name: Junit Report ${{ github.run_number }}.{{ matrix.cfg }}
115+
path: report.*
116+
62117
normal-test:
63118
name: Normal Test Config ${{ matrix.cfg }}
64119
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)