Continuous Integration
Last updated
Last updated
There are several jobs that run on each push on GitHub actions.
Lint - runs ESLint against the codebase. Will note any issues with the code style such as missing semi-colons or too many nested callbacks.
Test - runs our jest unit tests.
Check Types - runs the Typescript compiler against the codebase. Will not any issues with improper types or unused variables.
Check Build - builds the application to ensure that it build properly.
An easy way to fix this error is by auto-fixing any ESLint errors. This can be done by running npm run style:fix
. If this doesn't fix the error, there should be some output from the previous command that explains what the error is that cannot be autofixed.
A common ESLint error that cannot be auto fixed is magic numbers. This refers to a number (other than 0, 1, -1, or 2) that is not referenced by a variable name.
This is common when there is a function or an import that is defined but was not used. To fix this, simply remove the unused dependency or unused variables/function.