Skip to content

Commit 6c7c004

Browse files
cross19xxthymikee
andauthored
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 <[email protected]>
1 parent a95a3b0 commit 6c7c004

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.circleci/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ jobs:
6565
at: ~/react-native-testing-library
6666
- run: |
6767
cd website && yarn install && yarn build
68+
test-examples:
69+
<<: *defaults
70+
steps:
71+
- attach_workspace:
72+
at: ~/react-native-testing-library
73+
- run: |
74+
ls -d ./examples/* | xargs -I {} bash -c "cd '{}' && yarn install && yarn test"
6875
deploy-website:
6976
<<: *defaults
7077
steps:
@@ -96,6 +103,10 @@ workflows:
96103
- install-dependencies
97104
# docusuarus build is running when deploying website as well
98105
filters: *filter-ignore-master
106+
- test-examples:
107+
requires:
108+
- install-dependencies
109+
filters: *filter-only-master
99110
- deploy-website:
100111
requires:
101112
- install-dependencies

0 commit comments

Comments
 (0)