Skip to content

Set up the common configuration before tests are run #461

Set up the common configuration before tests are run

Set up the common configuration before tests are run #461

Workflow file for this run

#
# SPDX-License-Identifier: Apache-2.0
#
name: PDO CI
on: [pull_request, push]
jobs:
pdo_ci:
if: "!contains(github.event.commits[0].message, '[skip ci]')"
name: PDO CI Job
runs-on: ubuntu-20.04
strategy:
matrix:
interpreter: [gipsy, wawaka, wawaka-opt]
pdo_ledger_type: [sawtooth, ccf]
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Build and run tests
env:
PDO_INTERPRETER: ${{ matrix.interpreter }}
PDO_LEDGER_TYPE: ${{ matrix.pdo_ledger_type }}
run: |
# The creation of a dummy branch is necessary for the CI tests
# to work on PRs. Based on empirical results, in the absence of
# this command, CI tests work on the main branch and on local
# branches. However, they fail as a PR is created.
git checkout -b we-need-a-branch-for-below-to-work
. build/common-config.sh
make -C docker test-with-${PDO_LEDGER_TYPE}