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

Chore/undo monorepo setup #2099

Merged
merged 4 commits into from
Oct 10, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.