mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
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:
committed by
GitHub
parent
a95a3b0e73
commit
6c7c004ae6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user