

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Formatting
incomplete
2: Formatting CI
incomplete
This lesson's interactive features are locked, please to keep using them
Now that we understand how to check for formatting issues, let's add a formatting check to the CI workflow.
npm run format:check
We could simply add it as another step within the same "tests" job, but I think it will be cool to run independent CI checks in parallel.
After all, tests and formatting aren't dependent on each other, so why not run them in parallel and save some time? However, we will need to duplicate the "check out code", "set up Node" and "Install dependencies" steps in the new job because they are not shared between jobs.
Paste the URL of your GitHub repo into the box and run the GitHub checks.
If you have an open pull request and push new commits to the head branch (the one with the new changes) GitHub will automatically update the PR and rerun the actions.