Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move all tests to git workflows #1674

Merged
merged 3 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
5 changes: 4 additions & 1 deletion .github/workflows/db-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ 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 build-duckdb-db
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
29 changes: 29 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Core

on: [pull_request]

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