Skip to content

Commit

Permalink
Merge branch 'main' into tobias/remove-kind--password
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Apr 5, 2024
2 parents a1b5707 + 79240bd commit 8e7fae2
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 2 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/test_meltano_add_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Test Meltano add/install

on:
push:
branches: [main]
paths: [_data/meltano/*/*/*.yml]
pull_request:
branches: [main]
paths: [_data/meltano/*/*/*.yml]

jobs:
get_changed_plugins:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.changed_plugins.outputs.all_changed_files }}
steps:
- name: Checkout the repository
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Get changed plugins
id: changed_plugins
uses: tj-actions/[email protected]
with:
files: _data/meltano/*/*/*.yml
matrix: true

test:
runs-on: ubuntu-latest
needs: get_changed_plugins
strategy:
matrix:
file: ${{ fromJSON(needs.get_changed_plugins.outputs.matrix) }}
fail-fast: false
steps:
- name: Checkout the repository
uses: actions/[email protected]

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Install Meltano
run: pipx install meltano

- name: Setup test project
run: meltano init --no-usage-stats test-project

- name: Test add
working-directory: test-project
run: |
ref=https://raw.githubusercontent.com/meltano/hub/${{ github.event.pull_request.head.sha || github.sha }}/${{ matrix.file }}
type=$(basename $(dirname $(dirname ${{ matrix.file }})))
name=$(basename $(dirname ${{ matrix.file }}))
meltano add --no-install --from-ref $ref $type $name
- name: Test install
working-directory: test-project
run: meltano install
2 changes: 1 addition & 1 deletion _data/default_variants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ loaders:
target-parquet: automattic
target-pinecone: meltanolabs
target-postgres: meltanolabs
target-redshift: transferwise
target-redshift: ticketswap
target-s3: crowemi
target-s3-avro: faumel
target-s3-csv: transferwise
Expand Down
2 changes: 1 addition & 1 deletion _data/meltano/loaders/target-redshift/transferwise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ keywords:
- database
label: Amazon Redshift
logo_url: /assets/logos/loaders/redshift.png
maintenance_status: active
maintenance_status: inactive
name: target-redshift
namespace: target_redshift
pip_url: pipelinewise-target-redshift
Expand Down

0 comments on commit 8e7fae2

Please sign in to comment.