From acc9a1ac94ad51f3868ecc2294bba9c7019cdffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Burwash?= <35510512+SBurwash@users.noreply.github.com> Date: Thu, 7 Mar 2024 12:56:10 -0500 Subject: [PATCH] DE-2945 Maintenance - Implement dependabot as package manager - Add basic meltano CI (#107) * WIP * Removed * Added file --- .../workflows/ci_validate_meltano_install.yml | 21 ++++++++++++ plugins/loaders/target-jsonl--andyh1203.lock | 34 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .github/workflows/ci_validate_meltano_install.yml create mode 100644 plugins/loaders/target-jsonl--andyh1203.lock diff --git a/.github/workflows/ci_validate_meltano_install.yml b/.github/workflows/ci_validate_meltano_install.yml new file mode 100644 index 0000000..5676606 --- /dev/null +++ b/.github/workflows/ci_validate_meltano_install.yml @@ -0,0 +1,21 @@ +name: Validate Meltano Install +on: + pull_request: + types: + - opened + - reopened + - synchronize + +jobs: + setup-meltano: + name: Validate meltano configurations + runs-on: ubuntu-latest + timeout-minutes: 20 + + steps: + - uses: actions/checkout@v4 + - run: pip install meltano boto3 + - name: Install dependencies + run: meltano install --clean + - name: Validate meltano install + run: meltano schedule list diff --git a/plugins/loaders/target-jsonl--andyh1203.lock b/plugins/loaders/target-jsonl--andyh1203.lock new file mode 100644 index 0000000..5825fc4 --- /dev/null +++ b/plugins/loaders/target-jsonl--andyh1203.lock @@ -0,0 +1,34 @@ +{ + "plugin_type": "loaders", + "name": "target-jsonl", + "namespace": "target_jsonl", + "variant": "andyh1203", + "label": "JSON Lines (JSONL)", + "docs": "https://hub.meltano.com/loaders/target-jsonl--andyh1203", + "repo": "https://github.com/andyh1203/target-jsonl", + "pip_url": "target-jsonl", + "description": "JSONL loader", + "logo_url": "https://hub.meltano.com/assets/logos/loaders/jsonl.png", + "settings": [ + { + "name": "destination_path", + "kind": "string", + "value": "output", + "label": "Destination Path", + "description": "Sets the destination path the JSONL files are written to, relative\nto the project root.\n\nThe directory needs to exist already, it will not be created\nautomatically.\n\nTo write JSONL files to the project root, set an empty string (`\"\"`).\n" + }, + { + "name": "do_timestamp_file", + "kind": "boolean", + "value": false, + "label": "Include Timestamp in File Names", + "description": "Specifies if the files should get timestamped.\n\nBy default, the resulting file will not have a timestamp in the file name (i.e. `exchange_rate.jsonl`).\n\nIf this option gets set to `true`, the resulting file will have a timestamp associated with it (i.e. `exchange_rate-{timestamp}.jsonl`).\n" + }, + { + "name": "custom_name", + "kind": "string", + "label": "Custom File Name Override", + "description": "Specifies a custom name for the filename, instead of the stream name.\n\nThe file name will be `{custom_name}-{timestamp}.jsonl`, if `do_timestamp_file` is `true`.\nOtherwise the file name will be `{custom_name}.jsonl`.\n\nIf custom name is not provided, the stream name will be used.\n" + } + ] +} \ No newline at end of file