We have integration tests that work with a matrix of databases. We use the GitHub CI services feature to launch databaes to integration test against. However there are two problems:
- Some tests do not need a database service (e.g. sqlite)
- All services are launched for each matrix item. E.g. postgresql + mysql + redis are launched for every test in the matrix. But that is wasteful. We only need the database service corresponding to the case in the matrix.
How can this be achieved? So far I’ve seen how we can use the “incude” feature of matrix configuration. However that doesn’t help the first problem where we would want NO database service at all.