-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into dropdown-combobox
- Loading branch information
Showing
134 changed files
with
5,420 additions
and
1,642 deletions.
There are no files selected for viewing
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,2 @@ | ||
--- | ||
--- |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@khanacademy/wonder-blocks-dropdown": minor | ||
--- | ||
|
||
Add `startIcon` prop to Combobox |
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,76 @@ | ||
# This reusable workflow is executed to run linting checks for the project | ||
name: Run lint for the project | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node-version: [20.x] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install & cache node_modules | ||
uses: Khan/actions@shared-node-cache-v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Get All Changed Files | ||
uses: Khan/actions@get-changed-files-v2 | ||
id: changed | ||
|
||
- id: js-ts-files | ||
name: Find .js, .ts changed files | ||
uses: Khan/actions@filter-files-v1 | ||
with: | ||
changed-files: ${{ steps.changed.outputs.files }} | ||
extensions: '.js,.jsx,.ts,.tsx' | ||
|
||
- id: eslint-reset | ||
uses: Khan/actions@filter-files-v1 | ||
name: Files that would trigger a full eslint run | ||
with: | ||
changed-files: ${{ steps.changed.outputs.files }} | ||
files: '.eslintrc.js,yarn.lock,.eslintignore' | ||
|
||
- id: typecheck-reset | ||
uses: Khan/actions@filter-files-v1 | ||
name: Files that would trigger a typecheck run | ||
with: | ||
changed-files: ${{ steps.changed.outputs.files }} | ||
files: '.yarn.lock' | ||
|
||
# Linting / type checking | ||
- name: Eslint | ||
uses: Khan/actions@full-or-limited-v0 | ||
with: | ||
full-trigger: ${{ steps.eslint-reset.outputs.filtered }} | ||
full: yarn lint:ci . | ||
limited-trigger: ${{ steps.js-ts-files.outputs.filtered }} | ||
limited: yarn lint:ci {} | ||
|
||
- name: Typecheck | ||
if: always() # always run this check until we update the eslint config | ||
# if: steps.js-ts-files.outputs.filtered != '[]' || steps.typecheck-reset.outputs.filtered != '[]' | ||
run: yarn typecheck | ||
|
||
- name: Build .js bundles | ||
run: yarn build | ||
|
||
- name: Build .d.ts types | ||
run: yarn build:types | ||
|
||
- name: Check package.json files | ||
run: node utils/publish/pre-publish-check-ci.js |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This reusable workflow is executed to run test checks for the project | ||
name: Run tests for the project | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
CODECOV_TOKEN: | ||
required: true | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node-version: [20.x] | ||
shard: ["1/2", "2/2"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install & cache node_modules | ||
uses: Khan/actions@shared-node-cache-v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
# Testing and coverage | ||
- name: Run jest tests with coverage | ||
run: yarn coverage:ci --shard ${{ matrix.shard }} | ||
- name: Upload Coverage | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage/coverage-final.json |
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,6 @@ | ||
import {Meta} from "@storybook/blocks"; | ||
import ComponentGallery from "./components/gallery/component-gallery"; | ||
|
||
<Meta title="Gallery" /> | ||
## Component Gallery | ||
<ComponentGallery /> |
Oops, something went wrong.