Enable globbing with github actions
See original GitHub issueJust 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:
- Created 4 years ago
- Comments:10 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.