Skip to content

This GitHub action helps you to setup Cassandra schema.

License

Notifications You must be signed in to change notification settings

fabasoad/setup-cassandra-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Setup Cassandra action

Stand With Ukraine GitHub release (latest SemVer including pre-releases) linting

This GitHub action helps you to setup Cassandra schema.

Inputs

Name Required Description Default Possible values
host Yes Cassandra host. <String>
port No Cassandra port. 9042 <Number>
username No Cassandra username. <Empty> <String>
password No Cassandra password. <Empty> <String>
connect-timeout No Connection timeout to Cassandra in seconds. 10 <Number>
keyspace Yes Cassandra keyspace. Will be created automatically in case it does not exist. <String>
scripts_path Yes Path to the scripts folder. <Path>

Example usage

Workflow configuration

name: Setup Cassandra

on: push

jobs:
  setup:
    name: Setup
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@main
      - uses: fabasoad/setup-cassandra-action@main
        with:
          host: "192.13.131.0"
          port: 9042
          username: ${{ secrets.CASSANDRA_USERNAME }}
          password: ${{ secrets.CASSANDRA_PASSWORD }}
          connect-timeout: 30
          keyspace: test
          scripts_path: "./scripts"

Result

Result