Skip to content

Commit 8f63f34

Browse files
committed
Copy over GHA action workflow changes over from main to 1.x
1 parent 7e45b93 commit 8f63f34

File tree

7 files changed

+53
-21
lines changed

7 files changed

+53
-21
lines changed

.github/actions/checkout-and-build/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ runs:
3131
cache: ${{ inputs.cache_pkg_mgr_name}}
3232

3333
- name: Build with Maven
34+
shell: bash
3435
run: |
3536
mvn install -Dmaven.test.skip=${{ inputs.skip_tests_on_build }}

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Set update schedule for GitHub Actions
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "monthly"
9+
10+
- package-ecosystem: "docker"
11+
directory: "/"
12+
schedule:
13+
interval: "monthly"

.github/workflows/ci-astra-col-db-dbadmin.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
description: 'JDK distribution to use'
1212
required: true
1313
default: 'adopt'
14+
type: choice
1415
options: ['adopt', 'temurin']
1516
java_version:
1617
description: 'JDK version to use'
@@ -28,6 +29,7 @@ on:
2829
description: 'Test to run'
2930
required: true
3031
default: 'AstraDevCollectionITTest'
32+
type: choice
3133
options:
3234
- 'AstraDevCollectionITTest'
3335
- 'AstraDevDatabaseITTest'
@@ -40,6 +42,8 @@ jobs:
4042
BUILD:
4143
runs-on: ubuntu-latest
4244
steps:
45+
- name: Checkout repository
46+
uses: actions/checkout@v4
4347
- name: Checkout & Build
4448
uses: ./.github/actions/checkout-and-build
4549

.github/workflows/ci-astra-dev-new.yml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
description: 'JDK distribution to use'
1313
required: true
1414
default: 'adopt'
15+
type: choice
1516
options: ['adopt', 'temurin']
1617
java_version:
1718
description: 'JDK version to use'
@@ -27,14 +28,16 @@ on:
2728
default: 'true'
2829

2930
jobs:
30-
setup:
31+
BUILD:
3132
runs-on: ubuntu-latest
3233
steps:
34+
- name: Checkout repository
35+
uses: actions/checkout@v4
3336
- name: Checkout & Build
3437
uses: ./.github/actions/checkout-and-build
3538

3639
run_dev_tests:
37-
needs: setup
40+
needs: BUILD
3841
runs-on: ubuntu-latest
3942
strategy:
4043
matrix:
@@ -74,23 +77,22 @@ jobs:
7477
cloud_region: us-west-2
7578
- cloud_provider: GCP
7679
cloud_region: europe-west4
77-
embedding_provider:
78-
- name: openai
79-
key: ${{ secrets.OPENAI_API_KEY }}
80-
- name: azureOpenAI
81-
key: ${{ secrets.AZURE_OPENAI_API_KEY }}
82-
- name: huggingface
83-
key: ${{ secrets.HF_API_KEY }}
84-
- name: mistral
85-
key: ${{ secrets.MISTRAL_API_KEY }}
86-
- name: voyageAI
87-
key: ${{ secrets.VOYAGE_API_KEY }}
88-
- name: upstageAI
89-
key: ${{ secrets.UPSTAGE_API_KEY }}
90-
- name: jinaAI
91-
key: ${{ secrets.JINA_API_KEY }}
92-
- name: nvidia
93-
key: 'nvidia' # Not used
80+
- embedding_provider: openai
81+
key_name: OPENAI_API_KEY
82+
- embedding_provider: azureOpenAI
83+
key_name: AZURE_OPENAI_API_KEY
84+
- embedding_provider: huggingface
85+
key_name: HF_API_KEY
86+
- embedding_provider: mistral
87+
key_name: MISTRAL_API_KEY
88+
- embedding_provider: voyageAI
89+
key_name: VOYAGE_API_KEY
90+
- embedding_provider: upstageAI
91+
key_name: UPSTAGE_API_KEY
92+
- embedding_provider: jinaAI
93+
key_name: JINA_API_KEY
94+
- embedding_provider: nvidia
95+
key_name: 'nvidia' # Not used
9496

9597
steps:
9698
- name: Checkout repository
@@ -107,8 +109,8 @@ jobs:
107109
ASTRA_DB_APPLICATION_TOKEN_DEV: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN_DEV }}
108110
ASTRA_CLOUD_PROVIDER_DEV: ${{ matrix.cloud_provider }}
109111
ASTRA_CLOUD_REGION_DEV: ${{ matrix.cloud_region }}
110-
EMBEDDING_PROVIDER: ${{ matrix.embedding_provider.name }}
111-
EMBEDDING_API_KEY: ${{ matrix.embedding_provider.key }}
112+
EMBEDDING_PROVIDER: ${{ matrix.embedding_provider }}
113+
EMBEDDING_API_KEY: ${{ secrets[matrix.key_name] }}
112114
run: |
113115
cd astra-db-java
114116
mvn test -Dtest=com.datastax.astra.test.integration.dev_vectorize.AstraDevVectorizeEmbeddingApiKeyITTest

.github/workflows/ci-astra-devops.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
BUILD:
3030
runs-on: ubuntu-latest
3131
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v4
3234
- name: Checkout & Build
3335
uses: ./.github/actions/checkout-and-build
3436
run_dev_tests:

.github/workflows/ci-astra-vectorize-bedrock-hf.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ on:
1111
description: 'Embedding provider for tests to run'
1212
required: true
1313
default: 'bedrock'
14+
type: choice
1415
options:
1516
- 'bedrock'
1617
- 'huggingfaceDedicated'
1718
java_distribution:
1819
description: 'JDK distribution to use'
1920
required: true
2021
default: 'adopt'
22+
type: choice
2123
options: ['adopt', 'temurin']
2224
java_version:
2325
description: 'JDK version to use'
@@ -36,6 +38,8 @@ jobs:
3638
BUILD:
3739
runs-on: ubuntu-latest
3840
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v4
3943
- name: Checkout & Build
4044
uses: ./.github/actions/checkout-and-build
4145

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,12 @@
339339
<email>cedrick.lunven@gmail.com</email>
340340
<url>https://github.com/clun</url>
341341
</developer>
342+
<developer>
343+
<id>msmygit</id>
344+
<name>Madhavan Sridharan</name>
345+
<email>madhavan_5k@yahoo.com</email>
346+
<url>https://github.com/msmygit</url>
347+
</developer>
342348
</developers>
343349

344350
<profiles>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy