Skip to content

Commit

Permalink
Merge branch 'next' into pr/17708
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed May 3, 2022
2 parents a8f4d91 + dbc18f8 commit 36708b3
Show file tree
Hide file tree
Showing 790 changed files with 16,023 additions and 4,750 deletions.
6 changes: 3 additions & 3 deletions .babelrc.js
Expand Up @@ -55,7 +55,7 @@ module.exports = {
'@babel/plugin-syntax-dynamic-import',
['@babel/plugin-proposal-object-rest-spread', { loose: true, useBuiltIns: true }],
'babel-plugin-macros',
['emotion', { sourceMap: true, autoLabel: true }],
['@emotion', { sourceMap: true, autoLabel: 'always' }],
],
env: {
test: withTests,
Expand Down Expand Up @@ -90,7 +90,7 @@ module.exports = {
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
'babel-plugin-macros',
['emotion', { sourceMap: true, autoLabel: true }],
['@emotion', { sourceMap: true, autoLabel: 'always' }],
'babel-plugin-add-react-displayname',
],
env: {
Expand Down Expand Up @@ -125,7 +125,7 @@ module.exports = {
],
],
plugins: [
'emotion',
'@emotion',
'babel-plugin-macros',
'@babel/plugin-transform-arrow-functions',
'@babel/plugin-transform-shorthand-properties',
Expand Down
61 changes: 35 additions & 26 deletions .circleci/config.yml
Expand Up @@ -6,7 +6,7 @@ executors:
class:
description: The Resource class
type: enum
enum: ['small', 'medium', 'large', 'xlarge']
enum: ['small', 'medium', 'medium+', 'large', 'xlarge']
default: 'medium'
working_directory: /tmp/storybook
docker:
Expand All @@ -19,7 +19,7 @@ executors:
class:
description: The Resource class
type: enum
enum: ['small', 'medium', 'large', 'xlarge']
enum: ['small', 'medium', 'medium+', 'large', 'xlarge']
default: 'medium'
working_directory: /tmp/storybook
docker:
Expand All @@ -32,7 +32,7 @@ executors:
class:
description: The Resource class
type: enum
enum: ['small', 'medium', 'large', 'xlarge']
enum: ['small', 'medium', 'medium+', 'large', 'xlarge']
default: 'medium'
working_directory: /tmp/storybook
docker:
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
command: yarn install --immutable
- run:
name: Bootstrap
command: yarn bootstrap --core
command: yarn bootstrap --build --manager
- save_cache:
name: Save Yarn cache
key: build-yarn-2-cache-v3--{{ checksum "yarn.lock" }}
Expand All @@ -118,23 +118,9 @@ jobs:
name: examples
command: |
yarn run-chromatics
packtracker:
executor:
class: medium
name: sb_node_14_browsers
steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
- run:
name: Report webpack stats for manager of official storybook
command: |
cd examples/official-storybook
yarn packtracker
examples:
executor:
class: medium
class: medium+
name: sb_node_14_browsers
parallelism: 17
steps:
Expand Down Expand Up @@ -194,7 +180,7 @@ jobs:
name: Wait for registry
command: yarn wait-on http://localhost:6000
- run:
name: Run E2E tests
name: Run E2E (extended) tests
command: yarn test:e2e-framework --clean --all --skip angular11 --skip angular --skip angular12 --skip vue3 --skip web_components_typescript --skip cra --skip react
no_output_timeout: 5m
- store_artifacts:
Expand All @@ -204,7 +190,7 @@ jobs:
executor:
class: large
name: sb_cypress_8_node_14
parallelism: 2
parallelism: 8
steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
Expand All @@ -218,14 +204,35 @@ jobs:
name: Wait for registry
command: yarn wait-on http://localhost:6000
- run:
name: Run E2E tests
name: Run E2E (core) tests
# Do not test CRA here because it's done in PnP part
# TODO: Remove `web_components_typescript` as soon as Lit 2 stable is released
command: yarn test:e2e-framework vue3 angular130 angular13 angular12 angular11 web_components_typescript web_components_lit2 react
command: yarn test:e2e-framework vue3 angular130 angular13 angular12 angular11 web_components_typescript web_components_lit2 react react_legacy_root_api vite_react
no_output_timeout: 5m
- store_artifacts:
path: /tmp/cypress-record
destination: cypress
e2e-tests-sb-docs:
executor:
class: large
name: sb_cypress_8_node_14
parallelism: 2
steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
- run:
name: Running local registry
command: yarn local-registry --port 6000 --open
background: true
- run:
name: Wait for registry
command: yarn wait-on http://localhost:6000
- run:
name: Run smoke tests
command: yarn test:e2e-framework angular_modern_inline_rendering --test-runner --docs-mode
no_output_timeout: 5m
cra-bench:
executor:
class: medium
Expand Down Expand Up @@ -385,6 +392,8 @@ jobs:
- run:
name: Test
command: yarn test --coverage --runInBand --ci
- store_test_results:
path: junit.xml
- persist_to_workspace:
root: .
paths:
Expand Down Expand Up @@ -418,9 +427,6 @@ workflows:
- smoke-tests:
requires:
- build
- packtracker:
requires:
- build
- unit-tests:
requires:
- build
Expand All @@ -439,6 +445,9 @@ workflows:
- e2e-tests-core:
requires:
- publish
- e2e-tests-sb-docs:
requires:
- publish
- e2e-tests-pnp:
requires:
- publish
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Expand Up @@ -12,7 +12,7 @@ If your answer is yes to any of these, please make sure to include it in your PR

<!--
Everybody: Please submit all PRs to the `next` branch unless they are specific to the current release. Storybook maintainers cherry-pick bug and documentation fixes into the `master` branch as part of the release process, so you shouldn't need to worry about this.
Everybody: Please submit all PRs to the `next` branch unless they are specific to the current release. Storybook maintainers cherry-pick bug and documentation fixes into the `master` branch as part of the release process, so you shouldn't need to worry about this. For additional guidance: https://storybook.js.org/docs/react/contribute/how-to-contribute
Maintainers: Please tag your pull request with at least one of the following:
`["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]`
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/cron-weekly.yml
@@ -0,0 +1,19 @@
name: Markdown Links Check
# runs every monday at 9 am
on:
schedule:
- cron: "0 9 * * 1"

jobs:
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gaurav-nelson/github-action-markdown-link-check@v1
# checks all markdown files from important folders including all subfolders
with:
# only show errors that occur instead of successful links + errors
use-quiet-mode: 'yes'
# output full HTTP info for broken links
use-verbose-mode: 'yes'
config-file: '.github/workflows/markdown-link-check-config.json'
5 changes: 4 additions & 1 deletion .github/workflows/danger-js.yml
Expand Up @@ -8,9 +8,12 @@ jobs:
name: Danger JS
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
with:
node-version: '14'
- uses: actions/checkout@master
- name: Danger JS
uses: danger/danger-js@main
uses: danger/danger-js@10.9.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/markdown-link-check-config.json
@@ -0,0 +1,19 @@
{
"replacementPatterns": [
{
"pattern": "^/",
"replacement": "./"
}
],
"ignorePatterns": [
{
"pattern": "localhost"
},
{
"pattern": "https://github.com/storybookjs/storybook/pull/*"
},
{
"pattern": "https://stackblitz.com/*"
}
]
}
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -35,6 +35,7 @@ tsconfig.tsbuildinfo
lib/manager-webpack4/prebuilt
lib/manager-webpack5/prebuilt
examples/angular-cli/addon-jest.testresults.json
junit.xml

# Yarn stuff
/**/.yarn/*
Expand Down
9 changes: 9 additions & 0 deletions .gitpod.yml
@@ -0,0 +1,9 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
# and commit this file to your remote git repository to share the goodness with others.

tasks:
- init: yarn
command: yarn bootstrap --core


0 comments on commit 36708b3

Please sign in to comment.