question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable globbing with github actions

See original GitHub issue

Just like with the CLI, I would like to use glob patterns in the .github/graphql-inspector.yml config:

  path: "**/*.graphql"

However, this currently results in

✖  fatal     Error: Failed to load '**/*.graphql' (ref: master) 
    at /usr/local/share/.config/yarn/global/node_modules/@graphql-inspector/actions/dist/index.js:210:35
    at step (/usr/local/share/.config/yarn/global/node_modules/@graphql-inspector/actions/dist/index.js:44:23)
    at Object.next (/usr/local/share/.config/yarn/global/node_modules/@graphql-inspector/actions/dist/index.js:25:53)
    at fulfilled (/usr/local/share/.config/yarn/global/node_modules/@graphql-inspector/actions/dist/index.js:16:58)
    at process._tickCallback (internal/process/next_tick.js:68:7)

because it probably looks for a single file.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilkisielacommented, May 15, 2019

It might be hard to implement or even impossible because we use Github’s API to fetch files and it doesn’t support glob patterns. Maybe there’s a way to workaround and something like search results + file fetching would work.

0reactions
steebchencommented, May 15, 2019

Got it, thanks. Actually we get that too without generating the extra schema.graphqls, we use IntelliJ with the GraphQL extension and you can just specify globs for your schema files such as api/**/*.graphqls in the .graphqlconfig. Works perfectly for type checking, highlighting, “go to definition”, “show usages”, etc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tj-actions/glob: Github action to match glob patterns with ...
Search for files matching glob patterns with support for returning matching deleted git tracked files and also excludes all files and folders specified...
Read more >
GH Actions: run seems to run with noglob · Issue #4121 - GitHub
We have the following in a "run" step in github actions: ... set" COMMIT=commit_* echo $COMMIT echo "Enable filename expansion (globbing).
Read more >
Workflow syntax for GitHub Actions
A workflow is a configurable automated process made up of one or more jobs. You must create a YAML file to define your...
Read more >
globbing syntax is limited · Issue #51 - GitHub
Version of the Action v4.1.0. Describe the bug. Maybe this only requires a bit more documentation. However, it's not clear which syntax ...
Read more >
begin/globbing - GitHub
GitHub - begin/globbing: Introduction to "globbing" or glob matching, a programming concept that allows "filepath expansion" and matching using wildcards.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found