From the course: Learning GitHub Actions

Unlock the full course today

Join today to access over 24,200 courses taught by industry experts.

Linting and unit tests

Linting and unit tests - GitHub Tutorial

From the course: Learning GitHub Actions

Linting and unit tests

- [Instructor] In the first stage of our CI/CD pipeline we handle linting and unit tests. With linting we can enforce coding standards like naming conventions, comments and formatting. It can also improve code quality by detecting dangerous constructs like race conditions, unused libraries or typos and variable names. Essentially linting helps us catch errors and potential problems early in the design cycle when they're easy to debug and fix. Unit tests are often the first tests that are run against the project. These tests check code functionality at the component level making them useful for testing functions before they're integrated and because they're run at a low level unit tests can expose problems closer to where they originated and typically unit tests are fast running. This means we can run them along with our other built steps without slowing things down. Let's take a look at how we've…

Contents