-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Moved mobx as package Build & tests are working * Fix tests for mobx-undecorate * Maybe fixed circle CI * Run prettier on some docs * Finish up CI build * Use changesets for mobx-undecorate * Remove mention of gitpod from docs * Fix CI again :) * Persist some artifacts * Remove coveralls upload Will be handled with GH action * Run tests in band * Add coveralls action * Faster coveralls? Co-authored-by: Daniel K <[email protected]> Co-authored-by: urugator <[email protected]>
- Loading branch information
1 parent
81b0b46
commit 6f99e30
Showing
161 changed files
with
11,298 additions
and
13,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,5 @@ | ||
--- | ||
"mobx-undecorate": patch | ||
--- | ||
|
||
Fix [#2540](https://github.com/mobxjs/mobx/issues/2540) makeObservable not added to imports |
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 @@ | ||
--- | ||
"mobx-undecorate": patch | ||
--- | ||
|
||
Fix [#2558](https://github.com/mobxjs/mobx/issues/2558) Undecorate removes non-mobx decorator |
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,130 +1,90 @@ | ||
version: 2.1 | ||
|
||
executors: | ||
my-executor: | ||
node-executor: | ||
docker: | ||
- image: circleci/node:14 | ||
- image: circleci/node:12 | ||
environment: | ||
CI: true | ||
|
||
orbs: | ||
node: circleci/[email protected] | ||
|
||
jobs: | ||
build: | ||
executor: my-executor | ||
mobx-build: | ||
executor: node-executor | ||
steps: | ||
- checkout | ||
|
||
- node/install-packages: | ||
pkg-manager: yarn | ||
|
||
- run: yarn build | ||
|
||
- run: yarn mobx build | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- ./* | ||
|
||
test-check: | ||
executor: my-executor | ||
mobx-check: | ||
executor: node-executor | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- run: yarn mobx test:check | ||
|
||
- run: yarn test:check | ||
|
||
test-performance: | ||
executor: my-executor | ||
mobx-performance: | ||
executor: node-executor | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
|
||
- run: | ||
command: time node --expose-gc test/perf/index.js legacy | ||
environment: | ||
PERSIST: true | ||
|
||
- run: | ||
command: time node --expose-gc test/perf/index.js proxy | ||
command: yarn mobx test:performance | ||
environment: | ||
PERSIST: true | ||
- store_artifacts: | ||
path: packages/mobx/perf_report | ||
destination: mobx-perf | ||
|
||
test-coverage: | ||
executor: my-executor | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
|
||
- run: yarn test:coverage | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- ./coverage | ||
|
||
test-codemod: | ||
executor: my-executor | ||
mobx-test: | ||
executor: node-executor | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: run codemod | ||
command: | | ||
cd packages/mobx-undecorate | ||
yarn | ||
yarn test | ||
- run: yarn mobx test -i | ||
|
||
test-size: | ||
executor: my-executor | ||
mobx-size: | ||
executor: node-executor | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
|
||
- run: yarn test:size | ||
- run: yarn mobx test:size | ||
|
||
# upload coverage | ||
upload-coveralls: | ||
executor: my-executor | ||
mobx-undecorate-test: | ||
executor: node-executor | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
|
||
# only run coveralls if the token is present (it is not present for fork PRs for security reasons) | ||
- run: | ||
name: upload coveralls | ||
command: | | ||
if [[ -v COVERALLS_REPO_TOKEN ]] | ||
then | ||
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js | ||
echo "Coveralls info uploaded" | ||
else | ||
echo "Warning - Coveralls info could NOT be uploaded since the COVERALLS_REPO_TOKEN was not available" | ||
fi | ||
- checkout | ||
- node/install-packages: | ||
pkg-manager: yarn | ||
- run: yarn mobx-undecorate test | ||
|
||
workflows: | ||
version: 2 | ||
build-and-test: | ||
mobx: | ||
jobs: | ||
- build: | ||
filters: | ||
branches: | ||
ignore: | ||
- gh-pages | ||
- test-check: | ||
requires: | ||
- build | ||
- test-performance: | ||
- mobx-build | ||
- mobx-check: | ||
requires: | ||
- build | ||
- test-coverage: | ||
- mobx-build | ||
- mobx-performance: | ||
requires: | ||
- build | ||
- test-size: | ||
- mobx-build | ||
- mobx-test: | ||
requires: | ||
- build | ||
- test-codemod: | ||
- mobx-build | ||
- mobx-size: | ||
requires: | ||
- build | ||
- upload-coveralls: | ||
requires: | ||
- test-coverage | ||
- mobx-build | ||
|
||
mobx-undecorate: | ||
jobs: | ||
- mobx-undecorate-test |
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,32 @@ | ||
name: Coveralls | ||
|
||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
mobx: | ||
name: MobX Coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@master | ||
with: | ||
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js 12.x | ||
uses: actions/setup-node@master | ||
with: | ||
node-version: 12.x | ||
|
||
- name: Install Dependencies | ||
run: yarn --frozen-lockfile --ignore-scripts | ||
|
||
- name: Run Coverage | ||
run: yarn mobx test:coverage | ||
|
||
- name: Upload to coveralls | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: ./packages/mobx/coverage/lcov.info | ||
base-path: packages/mobx |
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
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
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.