Skip to content

Commit

Permalink
Adding Graphql-inspector for versioning(GSoC) 2023 (PalisadoesFoundat…
Browse files Browse the repository at this point in the history
…ion#1340)

* v1

* v2

* v3

* v4

* v5

* packages

* packages

* v6

* v6

* v7

* v7

* v7

* v7

* v7

* v7

* experiment

* v8

* v9

* v9

* v9

* trying somthing out

* trying somthing out

* v10

* v10

* v10

* v10

* delete

* v11

* v11

* v12

* v12

* chsnged the pre commit hook
  • Loading branch information
kb-0311 authored Jun 4, 2023
1 parent 760be05 commit a6ce592
Show file tree
Hide file tree
Showing 11 changed files with 19,908 additions and 1,597 deletions.
1 change: 0 additions & 1 deletion .github/workflows/authorized-changes-detection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
- '.github/**'
- '.husky/**'
- '.env.sample'
- 'package.json'
- 'tsconfig.json'
- '.gitignore'
- '.eslintrc.json'
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/inspect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on: [push]

jobs:
test:
name: Check Schema
runs-on: ubuntu-latest

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

- name: Install dependencies
run: npm ci

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

- uses: kamilkisiela/graphql-inspector@master
with:
schema: develop:schema.graphql
2 changes: 2 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,5 @@ jobs:
- name: 'Run JSDocs'
if: env.RUN_JSDOCS == 'True'
run: echo "Run JSdocs :${{ env.RUN_JSDOCS }}"


2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ npm run typecheck
# Throws errors if lint issues requiring manual intervention are found in code.
npm run lint:fix

npm run gen:schema

# Add the changes made to the stage
git add .
2 changes: 1 addition & 1 deletion codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { CodegenConfig } from "@graphql-codegen/cli";

const config: CodegenConfig = {
// Points to our schema and the additional scalar Upload which is added by Apollo-Server at runtime
schema: ["./src/typeDefs/**/*.ts", "scalar Upload"],
schema: ["./src/typeDefs/**/*.ts"],

generates: {
"./src/types/generatedGraphQLTypes.ts": {
Expand Down
Loading

0 comments on commit a6ce592

Please sign in to comment.