mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Resolves: #444 Summary: This commit installs and configures a GH action for chromatic. Chromatic is used for snapshot testing build-over-build. Details: * chore: install chromatic * chore: add chromatic package.json script Suggested by the docs for convenience so that we can run chromatic like: ```console yarn run chromatic ... ``` * chore: gitignore storybook builds * ci: configure chromatic This action configures chromatic to run in CI on pushes to all branches. By running this in CI, we get the following: - snapshot (build-over-build) - checks in our CI The snapshots and build-over-build behavior are per branch; this way we can work on a feature branch without worrying about changes being made to mainline independently. * chore: remove manual storybook build from CI This is now the responsibility of Chromatic
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
###############################################################################
|
|
# NOTICE #
|
|
# If you change this file, kindly copy-pasta your change into .prettierignore #
|
|
# and .eslintignore as well. See the following discussions to understand why #
|
|
# we have to resort to this duplication (at least for now): #
|
|
# #
|
|
# https://github.com/prettier/prettier/issues/8048 #
|
|
# https://github.com/prettier/prettier/issues/8506 #
|
|
# https://github.com/prettier/prettier/issues/8679 #
|
|
###############################################################################
|
|
|
|
node_modules
|
|
vendor
|
|
.eslintcache
|
|
yarn-error.log
|
|
.idea
|
|
|
|
# Front-end ignore
|
|
.next/
|
|
site/.eslintcache
|
|
site/.next/
|
|
site/node_modules/
|
|
site/storybook-static/
|
|
site/test-results/
|
|
site/yarn-error.log
|
|
coverage/
|
|
site/**/*.typegen.ts
|
|
site/build-storybook.log
|
|
|
|
# Build
|
|
dist/
|
|
site/out/
|
|
|
|
*.tfstate
|
|
*.tfplan
|
|
*.lock.hcl
|
|
.terraform/
|