diff --git a/.circleci/config.yml b/.circleci/config.yml index 16c49f96c..e31d6ec16 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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