davestewart / alias-hq

The end-to-end solution for configuring, refactoring, maintaining and using path aliases
https://davestewart.co.uk/projects/open-source/alias-hq/
MIT License
331 stars 11 forks source link

🧪 Tests CI & Coverage Badges #2

Closed pankajpatel closed 4 years ago

pankajpatel commented 4 years ago

Github Actions for

Check Coverage labels on https://github.com/pankajpatel/alias-hq/pull/1

davestewart commented 4 years ago

By the way, thanks for this!

It looks pretty complex.

Do you always have to write it yourself, or it a copy/paste job, or does GitHub help you write it?

Would be good to know for future reference.

pankajpatel commented 4 years ago

Most of the pieces can be provided by Github though I got to know this by trial and error

Auto publish on npm/git can also be done with Github Actions and there are already built action for it. Both explained here: https://github.com/features#ci-cd

For test coverage labels, I started it on some repos at work and then made a post about it https://time2hack.com/test-coverage-label-with-github-actions/

Once I get some script working for my needs, I just do copy paste on other project which are worth having it

davestewart commented 4 years ago

Nice one. Yet another thing to look into and get good (good enough) at 🤔

Anyway, thanks again for all your effort!