Skip to content

Commit

Permalink
[Github CI] Enable ddl2cpp tests
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Parpart <[email protected]>
  • Loading branch information
christianparpart committed Jan 20, 2025
1 parent 288639e commit cd8ad75
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,26 @@ jobs:
Lightweight-Linux-CI.tar.gz
retention-days: 1

ddl2cpp:
name: "ddl2cpp"
runs-on: ubuntu-24.04
needs: [ubuntu_build_cc_matrix]
steps:
- uses: actions/checkout@v4
- name: "Download binaries"
uses: actions/download-artifact@v4
with:
name: ubuntu2404-tests
- name: "Extract package"
run: |
sudo tar -xvf Lightweight-Linux-CI.tar.gz --strip-components=1 -C /usr/local
- name: "install dependencies"
run: sudo apt install -y unixodbc-dev unixodbc libsqliteodbc odbcinst uuid-dev sqlite3 uuid-dev
- name: "Run DDL2CPP"
run: ./src/tools/test.sh
env:
DDL2CPP: "/usr/local/bin/ddl2cpp"

dbms_test_matrix:
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion src/tools/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
LS_EXE="$(which ls)"
PROJECT_ROOT="$(realpath $(dirname "$0")/../..)"
BUILD_DIR="${1:-${PROJECT_ROOT}/out/build/linux-clang-debug}"
DDL2CPP="${BUILD_DIR}/src/tools/ddl2cpp"
DDL2CPP="${DDL2CPP:-${BUILD_DIR}/src/tools/ddl2cpp}"

SQLITE_TESTDB_FILE="${PROJECT_ROOT}/test.db"
ODBC_CONNECTION_STRING="DRIVER=SQLite3;Database=${SQLITE_TESTDB_FILE}"
Expand Down

0 comments on commit cd8ad75

Please sign in to comment.