Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add api-check step. Fix persistence between job stages in CI pipe… #21

Merged
merged 1 commit into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ jobs:
- attach_workspace:
at: ~/repo
- run: yarn run build
- persist_to_workspace:
root: ~/repo
paths: .

API_CHECK:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- run: yarn run api-check
- persist_to_workspace:
root: ~/repo
paths: .

# https://circleci.com/docs/2.0/collect-test-data/#karma
TEST:
Expand Down Expand Up @@ -147,11 +160,15 @@ workflows:
- BUILD:
requires:
- CHECKOUT
- API_CHECK:
requires:
- BUILD
- TEST:
requires:
- CHECKOUT # TODO: Also require build?
- BUILD_DOCS:
requires:
- BUILD
- TEST
- DEPLOY_DOCS:
requires:
Expand All @@ -173,8 +190,10 @@ workflows:
- NPM_PUBLISH:
requires:
- BUILD
- TEST
- BUILD_DOCS:
requires:
- BUILD
- TEST
- DEPLOY_DOCS_TO_PROD:
requires:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"yarn": ">=1.19.1"
},
"scripts": {
"api-check": "lerna run api-check --stream",
"build": "lerna run build --stream",
"build:update-api": "lerna run build:update-api --stream",
"build:demo": "lerna run build:demo --stream",
Expand Down
5 changes: 3 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
"build:umd": "cross-env NODE_ENV=production webpack --config .webpack/webpack.prod.js",
"build:all": "yarn run build:umd && yarn run build:cjs && yarn run build:esm",
"copy-dts": "copyfiles -u 1 \"src/**/*.d.ts\" dist/cjs && copyfiles -u 1 \"src/**/*.d.ts\" dist/esm",
"build": "yarn run build:all && yarn run copy-dts && api-extractor --debug run",
"build:update-api": "yarn run build:all && yarn run copy-dts && api-extractor run --local",
"build": "yarn run build:all && yarn run copy-dts",
"api-check": "api-extractor --debug run",
"build:update-api": "yarn run build && api-extractor run --local",
"prepublishOnly": "yarn run build",
"example": "node ../../utils/ExampleRunner/example-runner-cli.js"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/streaming-image-volume-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"build:esm": "tsc --project ./tsconfig.esm.json",
"build:umd": "cross-env NODE_ENV=production webpack --config .webpack/webpack.prod.js",
"build:all": "yarn run build:umd && yarn run build:cjs && yarn run build:esm",
"build": "yarn run build:all && api-extractor --debug run",
"build:update-api": "yarn run build:all && api-extractor run --local",
"build": "yarn run build:all",
"api-check": "api-extractor --debug run",
"build:update-api": "yarn run build && api-extractor run --local",
"prepublishOnly": "yarn run build",
"example": "node ../../utils/ExampleRunner/example-runner-cli.js"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"build:esm": "tsc --project ./tsconfig.esm.json",
"build:umd": "cross-env NODE_ENV=production webpack --config .webpack/webpack.prod.js",
"build:all": "yarn run build:umd && yarn run build:cjs && yarn run build:esm",
"build": "yarn run build:all && api-extractor --debug run",
"build:update-api": "yarn run build:all && api-extractor run --local",
"build": "yarn run build:all",
"api-check": "api-extractor --debug run",
"build:update-api": "yarn run build && api-extractor run --local",
"prepublishOnly": "yarn run build",
"example": "node ../../utils/ExampleRunner/example-runner-cli.js"
},
Expand Down