Skip to content

Commit

Permalink
Save storybook as an artifact in CircleCI for each PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hobson committed Jun 11, 2021
1 parent e760e63 commit bba86a1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,9 @@ jobs:
root: /home/circleci/transcom/mymove/
paths:
- storybook-static
- store_artifacts:
path: ~/transcom/mymove/storybook-static
destination: storybook
- announce_failure

# `build_migrations` builds the migrations container
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ in the [LICENSE.txt](./LICENSE.txt) file in this repository.
* [Spellcheck](#spellcheck)
* [Tips for staying sane](#tips-for-staying-sane)
* [GoLand](#goland)
* [Storybook](#storybook)
* [Troubleshooting](#troubleshooting)
* [Postgres Issues](#postgres-issues)
* [Development Machine Timezone Issues](#development-machine-timezone-issues)
Expand Down Expand Up @@ -588,6 +589,17 @@ This will let you walk through the caught spelling errors one-by-one and choose
* GoLand supports [attaching the debugger to a running process](https://blog.jetbrains.com/go/2019/02/06/debugging-with-goland-getting-started/#debugging-a-running-application-on-the-local-machine), however this requires that the server has been built with specific flags. If you wish to use this feature in development add the following line `export GOLAND=1` to your `.envrc.local`. Once the server starts follow the steps outlined in the article above and you should now be able to set breakpoints using the GoLand debugger.
### Storybook
We use [Storybook](https://storybook.js.org) for reviewing our
component library. The current components are deployed to
[https://storybook.dp3.us](https://storybook.dp3.us) after each build
of the master branch.
Each PR saves storybook as an artifact in CircleCI. Find the
`build_storybook` task and then go to the "ARTIFACTS" tab. Find the
link to `storybook/index.html` and click on it.
### Troubleshooting
* Random problems may arise if you have old Docker containers running. Run `docker ps` and if you see containers unrelated to our app, consider stopping them.
Expand Down

0 comments on commit bba86a1

Please sign in to comment.