![]() RUN apt update & apt install -y curl git unzip xz-utils zip libglu1-mesa openjdk-8-jdk wgetĮNV PATH "$PATH:/home/developer/flutter/bin" ![]() # Need to match the version of Linux your CI is running on Then you must configure a Docker image: you simply want to start from an Ubuntu machine and install Flutter on it.Ĭreate a ++code>Dockerfile++/code> and put it in a ++code>docker++/code> folder at the root of your project folder, it should look like that: To do so, you have to download Docker on your local machine. This way, goldens tests will render the same on both our environments, and if another developer with a Linux or Windows machine were to join us, they would be able to run tests on their local machine, which is kind of important. If this environment cannot be macOS as the pricing is way too high, we are going to choose Linux, leveraging the power of Docker. The solution we came up with is to run both local and CI tests in the same environment. So we had to come up with another solution, and that’s what I want to present to you in this article as follows: But we can sometimes forget to update our goldens locally and then you have tests failing on the main branch □. Our second approach was to run goldens on our local machine with a pre-commit hook and then skip them on the CI, to be able to run tests on a Linux CI.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |