Just decentralizing workflows, one for each job, and adding Jest. Soon I'll make more realistic tests.
It took some time because eslint was conflicting with jest.config,js file and the test files. But I fixed it by adding a tsconfig only for eslint extending the existing one.
In the coverage.yml I've made the integration with Codecov, a tool that helps you to see how much of your code is covered with tests. But you need to:
Link your Github account with Codecov;
Select the Ritsu repo;
Copy the key;
Create a repository secret named CODECOV_TOKEN and set the key to it;
Just decentralizing workflows, one for each job, and adding Jest. Soon I'll make more realistic tests.
It took some time because eslint was conflicting with jest.config,js file and the test files. But I fixed it by adding a tsconfig only for eslint extending the existing one.
In the coverage.yml I've made the integration with Codecov, a tool that helps you to see how much of your code is covered with tests. But you need to:
Codecov Link
As the lines are commented, it will not fail in the coverage test. So you can merge it with no problems.