Skip to content

Commit

Permalink
Add debug mode build step to CI
Browse files Browse the repository at this point in the history
Signed-off-by: Marcela Melara <[email protected]>
  • Loading branch information
marcelamelara committed Nov 30, 2023
1 parent 8cb9fba commit 147b2fd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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

0 comments on commit 147b2fd

Please sign in to comment.