Skip to content

A Github Action checking schema compatibility of any project against Confluent Cloud Schema Registry

License

Notifications You must be signed in to change notification settings

DivLoic/ccloud-registry-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Confluent Cloud Registry Action

Master Workflow Coverage Status FOSSA Status License

This Github Action validates the compatibility of your avro schemas against Confluent Cloud Schema Registry. Regardless of your programming language you can use it just by creating the two following files.

A schema.yml mapping schemas to subjects for validation

---
schemas:
  - subject: subject1-key
    file: schema0.avsc
# - ...

A Github Actions specification in the workflow folder (.github/workflows/*.yml)

uses: divloic/[email protected]
with:
  avro-files-path: src/main/avro/
  avro-subject-yaml: schemas.yaml
  schema-registry-url: ${{ secrets.SCHEMA_REGISTRY_URL }}
  schema-registry-api-key: ${{ secrets.SCHEMA_REGISTRY_API_KEY }}
  schema-registry-secret-key: ${{ secrets.SCHEMA_REGISTRY_SECRET_KEY }}

Inputs

input description default
avro-files-path path to the schemas folder src/main/avro/
avro-subject-yaml path to the subject file /schema.yml
schema-registry-url url to the schema-registry ⚠️ required
schema-registry-api-key Confluent API key ⚠️ required
schema-registry-secret-key Confluent secret key ⚠️ required

Outputs

This action has no output yet. It simply logs or crashes in case of incompatibilities.

Example usage

You can find a complete example in this repository: ccloud-registry-example

Contribute

Licence

This project is licensed under Apache License 2.0

FOSSA Status