Skip to content

Commit f16beb2

Browse files
authored
Commit graphql generated artifacts (#1642)
* Commit graphql generated artifacts * improve cicd * regenrate graphql
1 parent 83ad653 commit f16beb2

24 files changed

+334982
-20
lines changed

.cspell.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@
5252
],
5353
"language": "en-US",
5454
"useGitignore": true,
55-
"ignorePaths": ["**/graphql.ts", "**/CHANGELOG.md", "**/schema.graphql"]
55+
"ignorePaths": ["**/graphql.ts", "**/CHANGELOG.md", "**/schema.graphql", "**/generated/types.ts"]
5656
}

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/generated/ linguist-generated=true

.github/workflows/e2e.yml

-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ jobs:
5050
E2E_USER_NAME: "op://Shop-ex/saleor-app-avatax-e2e-${{ env.SALEOR_VERSION }}/E2E_USER_NAME"
5151
E2E_USER_PASSWORD: "op://Shop-ex/saleor-app-avatax-e2e-${{ env.SALEOR_VERSION }}/E2E_USER_PASSWORD"
5252
SECRET_KEY: "op://Shop-ex/saleor-app-avatax-e2e-${{ env.SALEOR_VERSION }}/SECRET_KEY"
53-
- name: Generate GraphQL files
54-
run: pnpm --filter=app-avatax generate
5553
- name: Run e2e tests
5654
run: pnpm --filter=app-avatax e2e
5755
# TODO: Add HTML report: https://linear.app/saleor/issue/SHOPX-304

.github/workflows/main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ jobs:
2020
with:
2121
run_install: |
2222
- args: [--frozen-lockfile]
23-
- name: Generate GraphQL types
24-
run: pnpm generate
2523
- name: Check linter
2624
run: pnpm lint
2725
- name: Check types
2826
run: pnpm check-types
2927
- name: Check package dependencies
3028
run: pnpm lint:packages
29+
- name: Check for changes in graphql files
30+
run: |
31+
pnpm generate
32+
git diff --name-status --exit-code .
3133
3234
test:
3335
runs-on: ubuntu-22.04
@@ -40,7 +42,5 @@ jobs:
4042
with:
4143
run_install: |
4244
- args: [--frozen-lockfile]
43-
- name: Generate GraphQL types
44-
run: pnpm generate
4545
- name: Run tests
4646
run: pnpm test

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ yarn-error.log*
3737

3838
.saleor-app-auth.json
3939
coverage/
40-
apps/**/generated
4140
.eslintcache
4241

4342
.sentryclirc

apps/avatax/e2e/generated/graphql.ts

+635
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)