Skip to content

Commit a6ce592

Browse files
authored
Adding Graphql-inspector for versioning(GSoC) 2023 (PalisadoesFoundation#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
1 parent 760be05 commit a6ce592

File tree

11 files changed

+19908
-1597
lines changed

11 files changed

+19908
-1597
lines changed

.github/workflows/authorized-changes-detection.yml

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ on:
1616
- '.github/**'
1717
- '.husky/**'
1818
- '.env.sample'
19-
- 'package.json'
2019
- 'tsconfig.json'
2120
- '.gitignore'
2221
- '.eslintrc.json'

.github/workflows/inspect.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
name: Check Schema
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
14+
- name: Install dependencies
15+
run: npm ci
16+
17+
- name: Generate schema.graphql
18+
run: npm run gen:schema
19+
20+
- uses: kamilkisiela/graphql-inspector@master
21+
with:
22+
schema: develop:schema.graphql

.github/workflows/pull-request.yml

+2
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,5 @@ jobs:
111111
- name: 'Run JSDocs'
112112
if: env.RUN_JSDOCS == 'True'
113113
run: echo "Run JSdocs :${{ env.RUN_JSDOCS }}"
114+
115+

.husky/pre-commit

+2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ npm run typecheck
1616
# Throws errors if lint issues requiring manual intervention are found in code.
1717
npm run lint:fix
1818

19+
npm run gen:schema
20+
1921
# Add the changes made to the stage
2022
git add .

codegen.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { CodegenConfig } from "@graphql-codegen/cli";
22

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

77
generates: {
88
"./src/types/generatedGraphQLTypes.ts": {

0 commit comments

Comments
 (0)