This PR is a bit heavy, but most of the changes is done automatically by rubocop or swagger so in the end, it is much simpler then it looks like at first sight :D.
Main changes:
enabling github workflows (.github/workflows/backend_ci_cd.yml) for
rubocop: I am using standard setup of linter, command standard:fix corrected maybe 3.000 offenses
brakeman: I have manually fixed couple of security issues and made sure that ignored ones can be truly ignored
audit: updated all gems which were raising security warnings
rspec: tests are run automatically on every push action
adding rswag tests for all Widget endpoints
adding rswag tests for all Location V2 endpoints
adding rswag tests for other minor V2 endpoints such as Species or FileConverter
I have updated Readme with description how to run swagger or rubocop on local machine now ;)
This PR is a bit heavy, but most of the changes is done automatically by rubocop or swagger so in the end, it is much simpler then it looks like at first sight :D.
Main changes:
standard
setup of linter, commandstandard:fix
corrected maybe 3.000 offensesI have updated Readme with description how to run swagger or rubocop on local machine now ;)