Skip to content

chore: Update CircleCI to run examples #557

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

Merged
merged 4 commits into from
Sep 30, 2020
Merged

chore: Update CircleCI to run examples #557

merged 4 commits into from
Sep 30, 2020

Conversation

cross19xx
Copy link
Contributor

Summary

CircleCI configuration runs all examples currently in the example directory

Test plan

Currently, the implementation runs only in master

- run: |
cd examples/reactnavigation && yarn install && yarn test
- run: |
cd examples/redux && yarn install && yarn test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have a "for-each" that would go through all examples?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ls -d ./examples/* | xargs -I {} bash -c "cd '{}' && npm install && npm run test"

This lists all directory inside the examples directory and for each of them, installs dependencies and runs a test

@thymikee thymikee merged commit 6c7c004 into master Sep 30, 2020
@thymikee thymikee deleted the chore/example-ci branch September 30, 2020 09:44
@thymikee thymikee linked an issue Dec 9, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert repository to monorepository
2 participants