-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
78 changed files
with
889 additions
and
262 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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 @@ | ||
--- | ||
"perseus-build-settings": patch | ||
--- | ||
|
||
Add build step to replace **lib_version** with each package's published package version |
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,14 @@ | ||
--- | ||
"@khanacademy/kas": patch | ||
"@khanacademy/kmath": patch | ||
"@khanacademy/math-input": patch | ||
"@khanacademy/perseus": patch | ||
"@khanacademy/perseus-core": patch | ||
"@khanacademy/perseus-editor": patch | ||
"@khanacademy/perseus-error": patch | ||
"@khanacademy/perseus-linter": patch | ||
"@khanacademy/pure-markdown": patch | ||
"@khanacademy/simple-markdown": patch | ||
--- | ||
|
||
Print package name and version when loaded in the page |
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
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 |
---|---|---|
|
@@ -31,8 +31,10 @@ jobs: | |
id: match | ||
with: | ||
changed-files: ${{ steps.changed.outputs.files }} | ||
files: packages/ # Only look for changes in packages | ||
globs: "!(**/__tests__/*), !(**/__stories__/*), !(**/dist/*)" # Ignore test files | ||
files: "packages/, config/build/" # Only look for changes in packages, build | ||
globs: "!(**/__tests__/*), !(**/__testdata__/*), !(**/__stories__/*), !(**/dist/*)" # Ignore test files | ||
matchAllGlobs: true # Default is to match any of the globs, which ends up matching all files | ||
conjunctive: true # Only match files that match all of the above | ||
|
||
- name: Verify changeset entries | ||
uses: Khan/[email protected] | ||
|
@@ -136,6 +138,14 @@ jobs: | |
- name: Run test with coverage | ||
run: yarn cypress:ci | ||
|
||
# Upload coverage report as an GitHub artifact so that it can be used | ||
# later in upload_coverage. | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: cypress-coverage | ||
path: ./.nyc_output/out.json | ||
|
||
coverage: | ||
name: Jest Coverage | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -154,11 +164,50 @@ jobs: | |
- name: Jest with coverage | ||
run: yarn coverage | ||
|
||
# Upload coverage report as an GitHub artifact so that it can be used | ||
# later in upload_coverage. | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: jest-coverage | ||
path: ./coverage/coverage-final.json | ||
|
||
upload_coverage: | ||
name: Upload Coverage | ||
runs-on: ubuntu-latest | ||
needs: [cypress, coverage] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} & Install & cache node_modules | ||
uses: Khan/actions@shared-node-cache-v0 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Download Jest Coverage | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: jest-coverage | ||
# path to decompress the artifact into, decompressed file | ||
# will be ./coverage-final.json | ||
path: ./ | ||
|
||
- name: Download Cypress Coverage | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: cypress-coverage | ||
# path to decompress the artifact into, decompressed file | ||
# will be ./out.json | ||
path: ./ | ||
|
||
# Upload both coverage files at once. This avoids issues where it Codecov | ||
# shows the results from only one of the reports which would make it appear | ||
# as though coverage dropped a lot. | ||
- name: Upload Coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage/coverage-final.json | ||
files: ./coverage-final.json,./out.json | ||
|
||
check_builds: | ||
name: Check builds for changes in size | ||
|
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,14 @@ | ||
{ | ||
"all": true, | ||
"include": [ | ||
"packages/*/src/**/*.js", | ||
"packages/*/src/**/*.jsx", | ||
"packages/*/src/**/*.ts", | ||
"packages/*/src/**/*.tsx" | ||
], | ||
"exclude": [ | ||
"**/*.stories.tsx", | ||
"**/*.test.ts", | ||
"**/*.test.tsx" | ||
] | ||
} |
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
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,2 +1,4 @@ | ||
export {libVersion} from "./version"; | ||
|
||
export * from "./nodes"; | ||
export {compare} from "./compare"; |
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,10 @@ | ||
// This file is processed by a Rollup plugin (replace) to inject the production | ||
// version number during the release build. | ||
// In dev, you'll never see the version number. | ||
|
||
import {addLibraryVersionToPerseusDebug} from "@khanacademy/perseus-core"; | ||
|
||
const libName = "@khanacademy/kas"; | ||
export const libVersion = "__lib_version__"; | ||
|
||
addLibraryVersionToPerseusDebug(libName, libVersion); |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This file is processed by a Rollup plugin (replace) to inject the production | ||
// version number during the release build. | ||
// In dev, you'll never see the version number. | ||
|
||
import {addLibraryVersionToPerseusDebug} from "@khanacademy/perseus-core"; | ||
|
||
const libName = "@khanacademy/kmath"; | ||
export const libVersion = "__lib_version__"; | ||
|
||
addLibraryVersionToPerseusDebug(libName, libVersion); |
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
Oops, something went wrong.