Skip to content

Commit

Permalink
chore: publish schema to test schema registry (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
Salaton committed Nov 2, 2021
1 parent 3e36ff0 commit a9961c0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,28 @@ jobs:
--set-env-vars "DATABASE_REGION=${{ secrets.PROD_DATABASE_REGION }}" \
--set-env-vars "DATABASE_INSTANCE=${{ secrets.PROD_DATABASE_INSTANCE }}" \
--set-env-vars "ROOT_COLLECTION_SUFFIX=${{ secrets.ROOT_COLLECTION_SUFFIX }}"
push_schema_test_registry:
name: Publish schema to schema registry
strategy:
matrix:
go-version: [1.16.x]
runs-on: ubuntu-latest
needs: [deploy_to_test]
steps:
- name: Checkout working branches
uses: actions/checkout@v2

# Install Go
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

# install CLI command and push schema to registry
# just to be sure, we re-validate the schema against schema registry
- name: Install CLI command and push schema to registry
run: |
go install github.com/savannahghi/bewellcli@$CLI_VERSION
bewellcli service validate-schema --name mycarehub --version $GITHUB_SHA --url ${{ secrets.TEST_SERVICE_GRAPHQL_URL }}
bewellcli service push-schema --name mycarehub --version $GITHUB_SHA --url ${{ secrets.TEST_SERVICE_GRAPHQL_URL }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# MyCareHub service

![Linting and Tests](https://github.com/savannahghi/mycarehub/actions/workflows/ci.yml/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/savannahghi/mycarehub/badge.svg)](https://coveralls.io/github/savannahghi/mycarehub)
[![Coverage Status](https://coveralls.io/repos/github/savannahghi/mycarehub/badge.svg?branch=develop)](https://coveralls.io/github/savannahghi/mycarehub?branch=develop)

This service contains the implementation of the mycarehub project.

Expand Down

0 comments on commit a9961c0

Please sign in to comment.