-
Notifications
You must be signed in to change notification settings - Fork 50
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
[Enhancement] Update action to rely on Shopify CLI 3.x + Theme Access app #52
Conversation
@@ -118,38 +119,27 @@ cleanup() { | |||
|
|||
trap 'cleanup $?' EXIT | |||
|
|||
if ! is_installed lhci; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't imagine any case when lhci
and shopify
are not already installed, as this entrypoint.sh
script is based on a Dockerfile
, in which both tools are installed.
Moreover, if you take a look at the Dockerfile.base
, @lhci/cli@0.8.x
is installed, so the command here is even outdated.
As I was initially confused and changing the command in this entrypoint.sh
file, I decided to remove these lines.
cat <<- EOF > lighthouserc.yml | ||
ci: | ||
collect: | ||
chromePath: "$(which chromium)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When puppeteerScript
is given but no chromePath
,
Lighthouse CI was shouting "Chrome not found".
Therefore, I set the path to chromium manually.
Due to additional issues (regarding There are still 2 open IT Helpdesk tickets to…
Depending on these tickets' outcomes, I might add changes to the branch, but PR is closed. |
WHY are these changes introduced?
Fixes #51:
WHAT is this pull request doing?
If token for Theme Access app is set, uses CLI 3.x to push theme.
Else, continues to use CLI 2.x with custom app token to push theme.
How to test your changes?
cd
into repo dir that containsDockerfile
INPUT_ACCESS_TOKEN
INPUT_SHOPIFY_CLI_THEME_TOKEN
podman build --tag lighthouse .
(ordocker …
if you prefer)storage.googleapis.com
, in which you can see your Lighthouse performance tests.Post-release steps