-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into sri-ram-contribution
- Loading branch information
Showing
2,455 changed files
with
38,479 additions
and
27,678 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,109 @@ | ||
name: Trigger CircleCI workflow | ||
|
||
on: | ||
pull_request: | ||
types: [labeled] | ||
# Use pull_request_target, as we don't need to check out the actual code of the fork in this script. | ||
# And this is the only way to trigger the Circle CI API on forks as well. | ||
pull_request_target: | ||
types: [opened, synchronize, labeled, unlabeled, reopened, converted_to_draft, ready_for_review] | ||
push: | ||
branches: | ||
- next | ||
|
||
jobs: | ||
trigger: | ||
if: github.event.label.name == 'run e2e extended test suite' && github.event.pull_request.head.repo.fork == false | ||
name: Run workflow with all e2e tests | ||
get-branch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Make request to CircleCI | ||
- id: get-branch | ||
env: | ||
# Stored as environment variable to prevent script injection | ||
REF_NAME: ${{ github.ref_name }} | ||
PR_REF_NAME: ${{ github.event.pull_request.head.ref }} | ||
run: | | ||
if [ "${{ github.event.pull_request.head.repo.fork }}" = "true" ]; then | ||
export BRANCH=pull/${{ github.event.pull_request.number }}/head | ||
elif [ "${{ github.event_name }}" = "push" ]; then | ||
export BRANCH="$REF_NAME" | ||
else | ||
export BRANCH="$PR_REF_NAME" | ||
fi | ||
echo "$BRANCH" | ||
echo "branch=$BRANCH" >> $GITHUB_ENV | ||
outputs: | ||
branch: ${{ env.branch }} | ||
|
||
trigger-ci-tests: | ||
runs-on: ubuntu-latest | ||
needs: get-branch | ||
if: github.event_name == 'pull_request_target' && github.event.pull_request.draft == true && !contains(github.event.pull_request.labels.*.name, 'ci:pr') && !contains(github.event.pull_request.labels.*.name, 'ci:merged') && !contains(github.event.pull_request.labels.*.name, 'ci:daily') | ||
steps: | ||
- name: Trigger draft PR tests | ||
run: > | ||
curl -X POST --location "https://circleci.com/api/v2/project/gh/storybookjs/storybook/pipeline" \ | ||
-H "Content-Type: application/json" \ | ||
-H "Circle-Token: $CIRCLE_CI_TOKEN" \ | ||
-d '{ | ||
"branch": "'"$BRANCH"'", | ||
"parameters": { | ||
"workflow": "ci" | ||
} | ||
}' | ||
env: | ||
CIRCLE_CI_TOKEN: ${{ secrets.CIRCLE_CI_TOKEN }} | ||
BRANCH: ${{ needs.get-branch.outputs.branch }} | ||
trigger-pr-tests: | ||
runs-on: ubuntu-latest | ||
needs: get-branch | ||
if: github.event_name == 'pull_request_target' && ((github.event.pull_request.draft == false || contains(github.event.pull_request.labels.*.name, 'ci:pr')) && !contains(github.event.pull_request.labels.*.name, 'ci:merged') && !contains(github.event.pull_request.labels.*.name, 'ci:daily')) | ||
steps: | ||
- name: Trigger PR tests | ||
run: > | ||
curl -X POST --location "https://circleci.com/api/v2/project/gh/storybookjs/storybook/pipeline" \ | ||
-H "Content-Type: application/json" \ | ||
-H "Circle-Token: $CIRCLE_CI_TOKEN" \ | ||
-d '{ | ||
"branch": "'"$BRANCH"'", | ||
"parameters": { | ||
"workflow": "pr" | ||
} | ||
}' | ||
env: | ||
CIRCLE_CI_TOKEN: ${{ secrets.CIRCLE_CI_TOKEN }} | ||
BRANCH: ${{ needs.get-branch.outputs.branch }} | ||
trigger-merged-tests: | ||
runs-on: ubuntu-latest | ||
needs: get-branch | ||
if: github.event_name == 'push' || (contains(github.event.pull_request.labels.*.name, 'ci:merged') && !contains(github.event.pull_request.labels.*.name, 'ci:daily')) | ||
steps: | ||
- name: Trigger merged tests | ||
run: > | ||
curl -X POST --location "https://circleci.com/api/v2/project/gh/storybookjs/storybook/pipeline" \ | ||
-H "Content-Type: application/json" \ | ||
-H "Circle-Token: $CIRCLE_CI_TOKEN" \ | ||
-d '{ | ||
"branch": "'"$BRANCH"'", | ||
"parameters": { | ||
"workflow": "merged" | ||
} | ||
}' | ||
env: | ||
CIRCLE_CI_TOKEN: ${{ secrets.CIRCLE_CI_TOKEN }} | ||
BRANCH: ${{ needs.get-branch.outputs.branch }} | ||
trigger-daily-tests: | ||
runs-on: ubuntu-latest | ||
needs: get-branch | ||
if: github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci:daily') | ||
steps: | ||
- name: Trigger the daily tests | ||
run: > | ||
curl --request POST | ||
--url https://circleci.com/api/v2/project/gh/storybookjs/storybook/pipeline | ||
--header 'Circle-Token: '"$CIRCLE_CI_TOKEN"' ' | ||
--header 'content-type: application/json' | ||
--data '{"branch":"${{ github.event.pull_request.head.ref }}"}' | ||
curl -X POST --location "https://circleci.com/api/v2/project/gh/storybookjs/storybook/pipeline" \ | ||
-H "Content-Type: application/json" \ | ||
-H "Circle-Token: $CIRCLE_CI_TOKEN" \ | ||
-d '{ | ||
"branch": "'"$BRANCH"'", | ||
"parameters": { | ||
"workflow": "daily" | ||
} | ||
}' | ||
env: | ||
CIRCLE_CI_TOKEN: ${{ secrets.CIRCLE_CI_TOKEN }} | ||
BRANCH: ${{ needs.get-branch.outputs.branch }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"unifiedjs.vscode-mdx", | ||
"yzhang.markdown-all-in-one" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,55 @@ | ||
{ | ||
"deepscan.enable": true, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint", | ||
"editor.formatOnSave": true | ||
}, | ||
"[javascriptreact]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint", | ||
"editor.formatOnSave": true | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint", | ||
"editor.formatOnSave": true | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint", | ||
"editor.formatOnSave": true | ||
}, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"editor.tabSize": 2, | ||
"editor.formatOnSave": true, | ||
"eslint.format.enable": true, | ||
"eslint.options": { | ||
"cache": true, | ||
"cacheLocation": ".cache/eslint", | ||
"extensions": [ | ||
".js", | ||
".jsx", | ||
".mjs", | ||
".json", | ||
".ts", | ||
".tsx" | ||
] | ||
}, | ||
"eslint.packageManager": "yarn", | ||
"eslint.useESLintClass": true, | ||
"eslint.validate": [ | ||
"json", | ||
"javascript", | ||
"javascriptreact", | ||
"html", | ||
"typescript", | ||
"typescriptreact" | ||
], | ||
"eslint.workingDirectories": [ | ||
"./code", | ||
"./scripts" | ||
], | ||
"files.associations": { | ||
"*.js": "javascriptreact" | ||
}, | ||
"prettier.ignorePath": "./code/.prettierignore", | ||
"typescript.tsdk": "./code/node_modules/typescript/lib" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
554 changes: 280 additions & 274 deletions
554
.yarn/releases/yarn-3.2.4.cjs → .yarn/releases/yarn-3.3.0.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.