-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theme check fails even when it passes #44
Comments
Hey @wrainbird! Trying to understand if this is on our side or an issue with Github Actions 🤔 Could you try running this same workflow on a different branch and on a theme without the Alternatively, please try with Any additional logs will also help! |
Hi @jamesmengo Thanks for getting back to me. I've tried updating I wonder if this is something to do with We use yarn, so there could be a conflict? Here are logs from updated to V2:
|
I looked into this and here's my 2 cents - what I think is happening here: Theme Check is likely still failing in your github action, but the Errors / Warnings are not showing up in the error reportWhy? This configuration means that we will only surface errors/annotations for files that are different from the base branch for any given execution run If there are errors or warnings related to files already on the base branch, the action should fail, but you won't see any of those relevant errors or annotations Fix Here's what I used: name: Theme Check
on: [push]
jobs:
theme-check:
name: Theme Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Theme Check
uses: shopify/theme-check-action@v2
with:
token: ${{ github.token }}
base: main Can you please try that out and let me know if it works? |
👋🏻 Hey @wrainbird, because there hasn’t been activity in the last couple of weeks we’ll be closing this issue. However if you’re still experiencing the same problem, please reopen the issue and share the outstanding context we’ve requested. Thanks! |
My apologies, I forgot to thank James for his suggestion as that worked - I was working off a main branch that had theme errors so once I cleaned it up it fixed it! |
Hello!
I've set this up and all appeared to be going well, I've been testing it with deliberate theme check errors on a PR.
However, now I have fixed the errors, the theme check still fails. I thought this may be similar to #28 - but I do have changed liquid files in the PR.
Comparing the results to a successful action in Dawn, I can't see what is causing this. However we do have our sections inside a
_sections
folder (we run our own build tool for shared schemas which gets compiled into asections
folder before we runshopify theme package
), which theme check does pick up, but maybe that could be causing the error code?My workflow:
Screenshots:
Similar successful action on a Dawn commit:
The text was updated successfully, but these errors were encountered: