Skip to content

Commit

Permalink
Move all tests to git workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Scullin committed Mar 23, 2024
1 parent df9757e commit 8ba217e
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/db-bigquery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: |
npm ci --loglevel error
npm run build
npm run test-silent
npm run test-silent -- -- test packages/malloy-db-bigquery
env:
CI: true
MALLOY_DATABASES: bigquery
2 changes: 1 addition & 1 deletion .github/workflows/db-motherduck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
npm ci --loglevel error
npm run build
npm run test-silent
npm run test-silent -- -- test packages/malloy-duckdb
env:
CI: true
MALLOY_DATABASES: motherduck
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/db-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:
npm run build
echo CREATE EXTENSION tsm_system_rows\; | psql
gunzip -c test/data/postgres/malloytest-postgres.sql.gz | psql
npm run test-silent
npm run test-silent -- -- test packages/malloy-db-postgres
export MALLOY_DATABASES=duckdb,postgres
npm run test-silent -- -- test/src/databases/multi-connection/multi_connection.spec.ts
env:
MALLOY_DATABASES: postgres
PGHOST: localhost
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/db-snowflake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
npm ci --loglevel error
npm run build
npm run test-silent
npm run test-silent -- -- test packages/malloy-db-snowflake
env:
CI: true
MALLOY_DATABASES: snowflake
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: BigQuery DB

on: [pull_request]

jobs:
test-bigquery:
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 test-silent
env:
CI: true
MALLOY_DATABASES: duckdb,duckdb_wasm

0 comments on commit 8ba217e

Please sign in to comment.