Skip non yaml/json files when validating samples

This prevents editor temp files from causing test failures.

Change-Id: I7728c0cd79141424df7ec544d73af9a37c1a147f
Closes-Bug: #1314369