ci: migrate the protocol test on docker image

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
Vincenzo Palazzo
2022-03-25 10:10:39 +01:00
committed by Rusty Russell
parent 5cdb16a93c
commit 20523f1b03
5 changed files with 232 additions and 28 deletions

View File

@@ -9,6 +9,7 @@ jobs:
smoke-test:
name: Smoke Test ${{ matrix.cfg }}
runs-on: ubuntu-20.04
timeout-minutes: 300
env:
DEVELOPER: 1
VALGRIND: 0
@@ -98,15 +99,8 @@ jobs:
proto-test:
name: Protocol Test Config
runs-on: ubuntu-20.04
timeout-minutes: 300
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:
@@ -116,27 +110,23 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
- name: Setup Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
- name: Build and run
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
docker build -f contrib/docker/Dockerfile.ubuntu -t cln-ci-ubuntu .
docker run -e ARCH=${{ matrix.arch }} \
-e COMPILER=${{ matrix.compiler }} \
-e DB=${{ matrix.db }} \
-e NETWORK=${{ matrix.network }} \
-e TARGET_HOST=${{ matrix.TARGET_HOST }} \
-e VALGRIND=${{ matrix.valgrind }} \
-e DEVELOPER=1 \
-e EXPERIMENTAL_FEATURES=1 \
-e COMPA=0 \
-e PYTEST_PAR=2 \
-e TEST_CMD="make check-protos" \
-e TEST_GROUP=1 \
-e TEST_GROUP_COUNT=1 \
cln-ci-ubuntu
- name: Upload Unit Test Results
if: always()
uses: actions/upload-artifact@v2