Skip to content

Commit

Permalink
Merge : inpect.yml into push.yml (PalisadoesFoundation#1718)
Browse files Browse the repository at this point in the history
* Merge : inpect.yml into push.yml

* fixes github-ref to github.ref_name

* Added needs-[push-workflow] to be success
  • Loading branch information
aialok authored and AVtheking committed Jan 23, 2024
1 parent f503f90 commit 3b83a9a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/inspect.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,36 @@ jobs:
user_name: '${{github.actor}}'
commit_message: 'Talawa API docs updated'

Check-schema:
name: Check Schema
runs-on: ubuntu-latest
needs: [Push-Workflow]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Restore node_modules from cache
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-node-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ env.cache-name }}-
${{ runner.os }}-node-
${{ runner.os }}-
- name: Install dependencies
run: npm ci

- name: Generate schema.graphql
run: npm run gen:schema

- uses: kamilkisiela/graphql-inspector@master
with:
schema: ${{ github.ref_name}}:schema.graphql

0 comments on commit 3b83a9a

Please sign in to comment.