diff --git a/.github/workflows/db-trino.yaml b/.github/workflows/db-trino.yaml new file mode 100644 index 0000000000..33b5436503 --- /dev/null +++ b/.github/workflows/db-trino.yaml @@ -0,0 +1,32 @@ +name: Trino DB + +on: [pull_request, workflow_call] + +jobs: + # Label of the container job + test-trino: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + + steps: + - uses: actions/checkout@v4 + with: + submodules: 'true' + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm ci --loglevel error + npm run build + npm run build-duckdb-db + npm run test-silent -- -- test + env: + MALLOY_DATABASES: trino + TRINO_SERVER: https://malloytesting-test-cluster.trino.galaxy.starburst.io + TRINO_USER: ${{ secrets.TRINO_USER}} + TRINO_PASSWORD: ${{ secrets.TRINO_PASSWORD}} diff --git a/test/src/runtimes.ts b/test/src/runtimes.ts index a79c189b24..27f6d32092 100644 --- a/test/src/runtimes.ts +++ b/test/src/runtimes.ts @@ -190,6 +190,7 @@ export const allDatabases = [ 'duckdb', 'duckdb_wasm', 'snowflake', + 'trino', ]; type RuntimeDatabaseNames = (typeof allDatabases)[number];