TogetherCrew / operations

This repository houses a collection of code artifacts, including Github actions, Github workflows, and essential docker-compose files. These resources are instrumental in facilitating efficient and automated staging and production deployments.
1 stars 0 forks source link

CI: SuperLinter #45

Open cyri113 opened 1 year ago

cyri113 commented 1 year ago

Problem

We have no standardised linter, which means that every repositories coding standards may defer. This makes it more of a challenge to easily work on multiple repositories. Our CI currently runs this process using super-linter, so it will be necessary for our services to meet the same standard, else the CI will fail.

Solution

We will use super-linter, in order to validate that our code meets certain standards. The library support almost every codebase, making it ideal for our use case.

We will need to adapt our codebase in order to validate the following command:

docker run -e RUN_LOCAL=true -e TYPESCRIPT_DEFAULT_STYLE=prettier -e VALIDATE_DOCKERFILE_HADOLINT=false -v $(pwd):/tmp/lint github/super-linter:slim-latest

Tasks

Prerequisites