Skip to content
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

Bump lighthouse-ci-action to 1.1.1 and checkout to v3 #2491

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

stufreen
Copy link
Contributor

@stufreen stufreen commented Apr 4, 2023

PR Summary:

Update Github actions to use the latest versions.

Why are these changes introduced?

Fixes https://github.com/Shopify/dawn-private/issues/142

What approach did you take?

  • Bump Checkout action to v3
  • Bump lighthouse-ci-action to v1.1.1
  • Add pull_theme option to lighthouse-ci-action. This lets us pull theme settings from a store to match real-world use cases instead of always testing against default settings.

Other considerations

Both changes should have no impact on CI except possibly speeding up/slowing down CI. I will update the environment variables to change the Lighthouse store.

Decision log

# Decision Alternatives Rationale Downsides
1

Visual impact on existing themes

n/a

Testing steps/scenarios

No theme testing required. Check github actions in CI to ensure its running as usual.

Demo links

N/A - No theme changes

Checklist

with:
store: ${{ secrets.SHOP_STORE_OS2 }}
password: ${{ secrets.SHOP_PASSWORD_OS2 }}
access_token: ${{ secrets.SHOP_ACCESS_TOKEN }}
product_handle: puppy
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default lighthouse-ci-action will use the first product. puppy only works for the os2-demo shop, but I'm planning to switch to theme-design-ci.

collection_handle: all
lhci_github_app_token: ${{ secrets.LHCI_GITHUB_TOKEN }}
access_token: ${{ secrets.SHOP_PULL_THEME }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ID or name of a theme from which the settings and JSON templates should be used. If not provided Lighthouse will be run against the theme's default settings.

@stufreen stufreen marked this pull request as ready for review April 4, 2023 18:36
@stufreen stufreen force-pushed the stu/update-github-action-versions branch from 98bf014 to 17cff5a Compare April 4, 2023 18:46
theme-check:
name: Theme Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting that this takes care of part of this issue 👍🏼

Copy link
Contributor

@andrewetchen andrewetchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll 🎩 but definitely wait for others to review this.

Also, thanks for adding the pull_theme option to lighthouse-ci-action 😄

@stufreen stufreen merged commit 61a862d into main Apr 11, 2023
@stufreen stufreen deleted the stu/update-github-action-versions branch April 11, 2023 17:00
phapsidesGT pushed a commit to Gravytrain-UK/gt-shopify-dawn-theme that referenced this pull request Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants