metac icon indicating copy to clipboard operation
metac copied to clipboard

add github actions / workflow

Open AmitKumarDas opened this issue 5 years ago • 5 comments

It will be great to add GitHub Actions based CI CD workflow to Metac. Metac has Travis doing all the CI CD stuff as of now. However, an additional CI CD tooling esp. GitHub Actions should be good to have considering its acceptance over the last few months.

AmitKumarDas avatar Jan 05 '20 07:01 AmitKumarDas

So currently basic flow is achieved, we have working release pipeline.

What next ?

  • static analysis ?
  • code coverage ?

grzesuav avatar Mar 31 '20 16:03 grzesuav

Thanks again @grzesuav Let's add all badges that includes above and more. I hope these should be relatively easy.

AmitKumarDas avatar Mar 31 '20 16:03 AmitKumarDas

For code coverage I notice several solutions :

  • run go coverage and upload it to
    • coveralls.io (https://github.com/marketplace/actions/actions-goveralls)
    • codecov.io (https://github.com/codecov/codecov-action)
    • codacy.com (https://github.com/brpaz/godacov-action)

it basically runs go test --cover and uploads test reult to third party storage, also we can retrieve bagde (and moreover on every PR there will be comments added with information how coverage will change with given PR)

do you have any preference ? I haven't been using any of those so I cannot list any pros/cons

grzesuav avatar Mar 31 '20 16:03 grzesuav

Anything is fine. Can we have a union of make unit-test and make integration as code coverage. Both of them are go test actually.

AmitKumarDas avatar Mar 31 '20 16:03 AmitKumarDas

We need to add -cover to relevant make targets in Makefile

AmitKumarDas avatar Mar 31 '20 16:03 AmitKumarDas