Commit 3a0c4ad4 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: do not cache gql across CI (#6963)

parent 803eb46e
...@@ -40,16 +40,11 @@ runs: ...@@ -40,16 +40,11 @@ runs:
run: yarn contracts run: yarn contracts
shell: bash shell: bash
# GraphQL is generated from schema. The schema is always fetched, but if unchanged, graphql does not need to be re-generated. # GraphQL is generated from schema and client-side graphql queries. The schema is always fetched and changes to
- run: yarn graphql:fetch # client-side queries are hard to detect, so it is always re-generated.
shell: bash # TODO(WEB-2498): Cache based on both fetched schema and client-side graphql queries.
- uses: actions/cache@v3 # This will require some processing: cp all literal graphql tags into a separate file and hash it?
id: graphql-cache - run: yarn graphql
with:
path: src/graphql/**/__generated__
key: ${{ runner.os }}-graphql-${{ hashFiles('src/graphql/**/schema.graphql') }}
- if: steps.graphql-cache.outputs.cache-hit != 'true'
run: yarn graphql:generate
shell: bash shell: bash
# Messages are extracted from source. # Messages are extracted from source.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment