Skip to content

Commit

Permalink
ci(workflow/pr): add build changes check (#1298)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed May 24, 2024
1 parent c1d4f7d commit 76f5f56
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
- name: Lint
run: pnpm lint

- name: Check for local development changes
run: ./scripts/lint-build.sh

build-docs:
needs: [changes, build]
if: ${{ needs.changes.outputs.docs_any_changed == 'true' }}
Expand Down
55 changes: 50 additions & 5 deletions packages/core/component-doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13864,6 +13864,51 @@
]
},
"props": [
{
"name": "closeBehavior",
"type": "\"both\" | \"inside\" | \"outside\" | boolean",
"complexType": {
"original": "CloseBehavior",
"resolved": "\"both\" | \"inside\" | \"outside\" | boolean",
"references": {
"CloseBehavior": {
"location": "import",
"path": "../dropdown/dropdown-controller",
"id": "src/components/dropdown/dropdown-controller.ts::CloseBehavior"
}
}
},
"mutable": false,
"attr": "close-behavior",
"reflectToAttr": false,
"docs": "Controls if the dropdown will be closed in response to a click event depending on the position of the event relative to the dropdown.",
"docsTags": [
{
"name": "since",
"text": "2.3.0"
}
],
"default": "'both'",
"values": [
{
"value": "both",
"type": "string"
},
{
"value": "inside",
"type": "string"
},
{
"value": "outside",
"type": "string"
},
{
"type": "boolean"
}
],
"optional": false,
"required": false
},
{
"name": "disabled",
"type": "boolean",
Expand Down Expand Up @@ -17678,6 +17723,11 @@
"docstring": "",
"path": "src/components/split-button/split-button.tsx"
},
"src/components/dropdown/dropdown-controller.ts::CloseBehavior": {
"declaration": "export type CloseBehavior = 'inside' | 'outside' | 'both' | boolean;",
"docstring": "",
"path": "src/components/dropdown/dropdown-controller.ts"
},
"src/components/tab-item/tab-item.tsx::TabClickDetail": {
"declaration": "{\n nativeEvent: MouseEvent;\n}",
"docstring": "",
Expand Down Expand Up @@ -17728,11 +17778,6 @@
"docstring": "",
"path": "src/components/category-filter/input-state.ts"
},
"src/components/dropdown/dropdown-controller.ts::CloseBehavior": {
"declaration": "export type CloseBehavior = 'inside' | 'outside' | 'both' | boolean;",
"docstring": "",
"path": "src/components/dropdown/dropdown-controller.ts"
},
"src/components/flip-tile/flip-tile-state.ts::FlipTileState": {
"declaration": "export enum FlipTileState {\n None = 'none',\n Info = 'info',\n Warning = 'warning',\n Alarm = 'alarm',\n Primary = 'primary',\n}",
"docstring": "",
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ then
exit 0
fi

echo There are some changed files after 'yarn build'
echo There are some changed files after 'pnpm build'
echo $RESULT

exit 1

0 comments on commit 76f5f56

Please sign in to comment.