Skip to content

Commit

Permalink
feat: create ci to build hasura
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 committed Sep 6, 2023
1 parent 6ff5c72 commit 32535c4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
workflow_dispatch:
push:
branches: [develop, staging]
branches: [develop, staging, feat/create-hasura-metadata]
jobs:
lint:
uses: ./.github/workflows/lint.yml
Expand All @@ -26,7 +26,24 @@ jobs:
NPM_TOKEN: ${{ secrets.KEY_NPM_RC }}
run: |
./ci/build.sh
check-hasura-metadata:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Check hasura changes
run: |
STATUS=`git status hasura -s`
NUMBER_CHANGES=${#STATUS}
echo "::set-output name=NUMBER_CHANGES::${#STATUS}"
outputs:
NUMBER_CHANGES: ${{ steps.set.outputs.NUMBER_CHANGES }}
build-hasura:
runs-on: [ubuntu-latest]
needs:
- check-hasura-metadata
if: needs.check-hasura-metadata.outputs.NUMBER_CHANGES == '0'
steps:
- run: echo "There is no changes in hasura"
updateManifest:
runs-on: [ubuntu-latest]
needs: [lint, test, build]
Expand Down
1 change: 1 addition & 0 deletions hasura/migrations/a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1

0 comments on commit 32535c4

Please sign in to comment.