add gofmt step to ci#91
Conversation
|
@roc-streaming/go ready for review |
| with: | ||
| go-version: ${{ matrix.go }} | ||
|
|
||
| - name: gofmt |
There was a problem hiding this comment.
I added fmt step only in linux.
Because Jerome1337/gofmt-action@v1.0.5 is available in linux only.
https://github.com/roc-streaming/roc-go/actions/runs/5029732462/jobs/9021655456
Error: Container action is only supported on Linux
|
Thanks for PR! Using linux is perfectly ok, we don't need to check formatting on each OS because results would be the same. I suggest extracting formatting check into a separate job "Formatting". It's not really bound to any steps in "Linux" job and can be done separately. |
|
Follow-up issue: https://github.com/roc-streaming/roc-go/issues/92 |
|
@wataru-nakanishi Could you please check if this CI step will fail if a file has no newline at the end? If it won't, I think I'll create a separate issue for adding such step too. |
|
@gavv
I added a new line to config.go and CI failed. |
|
@gavv Please let me know if I'm misunderstanding. |
|
config.go does have newline at the end. It's last symbol is LF, not "}". If there were no terimnating LF, github would display that red icon that I showed above. |
Thanks for letting me know. |
|
Thanks!! So we don't need one more check, gofmt already checks everything we need. One more comment: could you please place formatting job before release job, and add formatting job to the list of dependencies of release job? |
|
LGTM |

PR for #86
Implemented
This is my first contributing!
If the contributing process was wrong, please tell me.