Run linter just once (outside the matrix)

That is not an option because then I have to run the CI. But the linter do run in my own local environment as a unit tests.

In the end I think I will separate the tests in several categories to selectively run them.