Skip to content

Commit

Permalink
Added GitHub action for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AdalbertMemSQL committed Oct 17, 2024
1 parent b1a9660 commit 5189910
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

services:
singlestore:
# check for new versions at https://github.com/singlestore-labs/singlestoredb-dev-image/pkgs/container/singlestoredb-dev/versions
image: ghcr.io/singlestore-labs/singlestoredb-dev:0.2.35
ports:
- "3306:3306"
env:
# if you want a free SingleStore license for your own use please visit https://www.singlestore.com/cloud-trial/
SINGLESTORE_LICENSE: ${{ secrets.SINGLESTORE_LICENSE }}
ROOT_PASSWORD: ${{ secrets.ROOT_PASSWORD }}

env:
ROOT_PASSWORD: ${{ secrets.ROOT_PASSWORD }}

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Copy common.proto file
uses: wei/wget@v1
with:
args: -O src/main/proto/common.proto https://raw.githubusercontent.com/fivetran/fivetran_sdk/production/common.proto
- name: Copy destination_sdk.proto file
uses: wei/wget@v1
with:
args: -O src/main/proto/connector_sdk.proto https://raw.githubusercontent.com/fivetran/fivetran_sdk/production/connector_sdk.proto
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: build
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class IntegrationTestBase {
static String host = "127.0.0.1";
static String port = "3306";
static String user = "root";
static String password = "1";
static String password = System.getenv("ROOT_PASSWORD");
static String database = "db";

static SingleStoreConfiguration getConfig(String table) {
Expand Down

0 comments on commit 5189910

Please sign in to comment.