Skip to content

Commit

Permalink
Chore/undo monorepo setup (#2099)
Browse files Browse the repository at this point in the history
* chore: undo the monorepo setup

* v5.3.0-alpha.1

* chore: minor touch ups during manual testing steps

* fix: remove unused CircleCI test, format it
  • Loading branch information
coolsoftwaretyler authored Oct 10, 2023
1 parent 1d600ed commit 73343f6
Show file tree
Hide file tree
Showing 235 changed files with 24,040 additions and 28,395 deletions.
190 changes: 88 additions & 102 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,113 +1,99 @@
version: 2.1

executors:
my-executor:
docker:
- image: cimg/node:14.18.1
environment:
CI: true
my-executor:
docker:
- image: cimg/node:14.18.1
environment:
CI: true

orbs:
node: circleci/node@4.7.0
node: circleci/node@4.7.0

jobs:
# mobx-state-tree build
build:
executor: my-executor
steps:
- checkout

- node/install-packages:
pkg-manager: yarn

- run: yarn build

- persist_to_workspace:
root: .
paths:
- ./*

# mobx-state-tree tests
test-mst-dev:
executor: my-executor
steps:
- attach_workspace:
at: .

- run: yarn test:mst:dev -i --coverage
- store_test_results:
path: ./test-results

- persist_to_workspace:
root: .
paths:
- packages/mobx-state-tree/coverage/*

test-mst-prod:
executor: my-executor
steps:
- attach_workspace:
at: .

- run: yarn test:mst:prod -i
- store_test_results:
path: ./test-results

test-mst-others:
executor: my-executor
steps:
- attach_workspace:
at: .

- run: yarn test:mst:others
- store_test_results:
path: ./test-results

test-size:
executor: my-executor
steps:
- attach_workspace:
at: .

- run: yarn size

# upload coverage
upload-codecov:
executor: my-executor
steps:
- attach_workspace:
at: .
# only run codecov if the token is present (it is not present for fork PRs for security reasons)
- run:
name: upload codecov
command: |
if [[ -v CODECOV_TOKEN ]]
then
./node_modules/.bin/codecov
else
echo "Warning - Codecov info could NOT be uploaded since the CODECOV_TOKEN was not available"
fi
# mobx-state-tree build
build:
executor: my-executor
steps:
- checkout

- node/install-packages:
pkg-manager: yarn

- run: yarn build

- persist_to_workspace:
root: .
paths:
- ./*

# mobx-state-tree tests
test-mst-dev:
executor: my-executor
steps:
- attach_workspace:
at: .

- run: yarn test:dev -i --coverage
- store_test_results:
path: ./test-results

- persist_to_workspace:
root: .
paths:
- ./coverage/*

test-mst-prod:
executor: my-executor
steps:
- attach_workspace:
at: .

- run: yarn test:prod -i
- store_test_results:
path: ./test-results

test-size:
executor: my-executor
steps:
- attach_workspace:
at: .

- run: yarn size

# upload coverage
upload-codecov:
executor: my-executor
steps:
- attach_workspace:
at: .
# only run codecov if the token is present (it is not present for fork PRs for security reasons)
- run:
name: upload codecov
command: |
if [[ -v CODECOV_TOKEN ]]
then
./node_modules/.bin/codecov
else
echo "Warning - Codecov info could NOT be uploaded since the CODECOV_TOKEN was not available"
fi
workflows:
version: 2
build-and-test:
jobs:
version: 2
build-and-test:
jobs:
- build

- test-mst-dev:
requires:
- build
- test-mst-prod:
requires:
- build
- test-size:
requires:
- build

- test-mst-dev:
requires:
- build
- test-mst-prod:
requires:
- build
- test-mst-others:
requires:
- build

- test-size:
requires:
- build

- upload-codecov:
requires:
- test-mst-dev
- upload-codecov:
requires:
- test-mst-dev
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ package-lock.json
/test-results/**/*.xml
/website/build
.DS_Store
junit.xml
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

8 changes: 0 additions & 8 deletions .size-limit.json

This file was deleted.

1 change: 0 additions & 1 deletion .watchmanconfig

This file was deleted.

Loading

0 comments on commit 73343f6

Please sign in to comment.