Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
3a0c4ad4
Unverified
Commit
3a0c4ad4
authored
Jul 17, 2023
by
Zach Pomerantz
Committed by
GitHub
Jul 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: do not cache gql across CI (#6963)
parent
803eb46e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
action.yml
.github/actions/setup/action.yml
+5
-10
No files found.
.github/actions/setup/action.yml
View file @
3a0c4ad4
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment