Thousands of teachers and public workers will strike on June 30 as the Government and unions fail to reach an agreement over pensions.