diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3f57a8435..997bd22b8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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