chore: Update CircleCI to run examples (#557)

* chore: Update CircleCI to run examples

* chore: loop through each example and run test

* fix: switch to using yarn instead of npm

* Update .circleci/config.yml

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
This commit is contained in:
Kenneth Kwakye-Gyamfi
2020-09-30 09:44:27 +00:00
committed by GitHub
parent a95a3b0e73
commit 6c7c004ae6
+11
View File
@@ -65,6 +65,13 @@ jobs:
at: ~/react-native-testing-library
- run: |
cd website && yarn install && yarn build
test-examples:
<<: *defaults
steps:
- attach_workspace:
at: ~/react-native-testing-library
- run: |
ls -d ./examples/* | xargs -I {} bash -c "cd '{}' && yarn install && yarn test"
deploy-website:
<<: *defaults
steps:
@@ -96,6 +103,10 @@ workflows:
- install-dependencies
# docusuarus build is running when deploying website as well
filters: *filter-ignore-master
- test-examples:
requires:
- install-dependencies
filters: *filter-only-master
- deploy-website:
requires:
- install-dependencies