Exploring GitHub actions and repository quality
To keep our project healthy, we want to make sure that our tests always pass and the best Dart/Flutter guidelines are respected. We cannot always make these checks manually since it would be error-prone, time-consuming, and not systematic – after all, we’re all human and we can forget about tasks!
For this reason, we are going to set up a CI configuration in GitHub that systematically performs a series of checks in our code. GitHub actions, as the name suggests, are a series of actions that automate your workflows. In our case, we will use a Flutter action to install the framework in our server and another action to check the code coverage.
Let’s get started!
Creating the GitHub workflow file
We need to create a folder called .github
at the root of the repository, which is the same place where the .git
file is located. If you check our online repository, you’ll see a variety of content:
-
...