From 147b2fda448a21fd862b63a09907a66d745e38f3 Mon Sep 17 00:00:00 2001 From: Marcela Melara Date: Thu, 30 Nov 2023 12:35:15 -0800 Subject: [PATCH] Add debug mode build step to CI Signed-off-by: Marcela Melara --- .github/workflows/ci.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8191032d..3c2ddec5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,6 +20,7 @@ jobs: uses: actions/checkout@v2 - name: Build and run tests + if: "!contains(github.event.commits[0].message, '[debug]')" env: PDO_INTERPRETER: ${{ matrix.interpreter }} run: | @@ -30,3 +31,17 @@ jobs: git checkout -b ci-test-branch . build/common-config.sh make -C docker test + + - name: Build and run tests (DEBUG MODE) + env: + PDO_INTERPRETER: ${{ matrix.interpreter }} + PDO_LOG_LEVEL: debug + if: "contains(github.event.commits[0].message, '[debug]')" + 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 ci-test-branch + . build/common-config.sh + make -C docker test \ No newline at end of file