Use a build matrix to test templates