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

update chromatic workflow #2917

Merged
merged 8 commits into from
Oct 23, 2023
Merged

update chromatic workflow #2917

merged 8 commits into from
Oct 23, 2023

Conversation

antsgar
Copy link
Collaborator

@antsgar antsgar commented Oct 19, 2023

Description

Updated Chromatic workflow to deploy Storybook based on the latest Storybook docs.

Jira link:

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Passes test case
  • UI components visually reviewed on desktop view
  • UI components visually reviewed on mobile view
  • Other (please explain)

Set the workflow trigger to run on the pull request temporarily, checked that the action passed correctly, then switched the trigger back so it only runs when we merge a PR to integration.

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • The precommit and linting ran successfully
  • I have added or updated language tags for text that's part of the UI
  • I have added "MISSING" for all new language tags to languages I don't speak
  • I have added the GNU General Public License to all new files

@antsgar antsgar marked this pull request as ready for review October 19, 2023 19:47
@antsgar antsgar requested review from a team, Duncan-Brain and SayakaOno October 19, 2023 19:47
Copy link
Collaborator

@SayakaOno SayakaOno left a comment

Choose a reason for hiding this comment

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

We wanted this, thank you so much!
I don't know how to read chromatic.yml, so it would be great if you could explain it in tech daily!

README.md Outdated
You can use Storybook to visualize and test out the UI components used throughout the app.

- To view Storybook on your local environment, run `pnmp storybook` on the `packages/webapp` directory and navigate to http://localhost:6006
- To view the deployed version of Storybook, which is updated automatically with the latest changes on the integratio branch, go to https://65316fc4f177c73a9181a843-yobioprfjv.chromatic.com
Copy link
Collaborator

Choose a reason for hiding this comment

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

A little typo, the "n" in "integration" is missing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops, thank you! 🙂

@antsgar
Copy link
Collaborator Author

antsgar commented Oct 20, 2023

We wanted this, thank you so much! I don't know how to read chromatic.yml, so it would be great if you could explain it in tech daily!

@kathyavini for sure, we can go over it in tech daily!

@kathyavini
Copy link
Collaborator

@kathyavini for sure, we can go over it in tech daily!

It wasn't my request, but I would have had the same 😁 I'm looking forward to learning how this works!

with:
fetch-depth: 0
- uses: pnpm/[email protected]
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 6.26.1
Copy link
Collaborator

@Duncan-Brain Duncan-Brain Oct 20, 2023

Choose a reason for hiding this comment

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

This should probably be updated too else it may install dependencies different from local.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, done 🙂

Duncan-Brain
Duncan-Brain previously approved these changes Oct 20, 2023
Copy link
Collaborator

@Duncan-Brain Duncan-Brain left a comment

Choose a reason for hiding this comment

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

Left one comment not super important and approved -- but Storybook seems to be working (so slow haha -- but working).

@antsgar
Copy link
Collaborator Author

antsgar commented Oct 23, 2023

@kathyavini for sure, we can go over it in tech daily!

It wasn't my request, but I would have had the same 😁 I'm looking forward to learning how this works!

Lol I tagged you instead of @SayakaOno 😅 sorry!

on:
workflow_dispatch:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry I did not notice this before but you have two action triggers here (workflow_dispatch and push) just thought I should ask if this is intentional. Normally we only have one or the other

@SayakaOno SayakaOno merged commit a71aa46 into integration Oct 23, 2023
1 check passed
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