Skip to content

Commit

Permalink
Trino CI test (#1698)
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Scullin authored Apr 2, 2024
1 parent 865a05a commit c07dc0d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/db-trino.yaml
Original file line number Diff line number Diff line change
@@ -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}}
1 change: 1 addition & 0 deletions test/src/runtimes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export const allDatabases = [
'duckdb',
'duckdb_wasm',
'snowflake',
'trino',
];

type RuntimeDatabaseNames = (typeof allDatabases)[number];
Expand Down

0 comments on commit c07dc0d

Please sign in to comment.