I have a nice GH action that runs some build and test on my project, now I noticed that some of the latest runs have some problem.
Figure 1: My action that ran only one of the matrix combination
Action has two distinct run because it has a matrix, actually I want to run it against Linux and Windows operating systems, but it seems that it does not run anymore on Windows.
GitHub actions can run the very same worfklow for a different combination of parameters, the most common setup is running on different operating systems.
Figure 2: Warning telling me that the image does not exists.
Actually I do not know why this is a simple warning and not a real error, but the reason is clear, the image windows-2016 is now removed so the corresponding matrix entry is invalid.
When you write your actions, it is probably better not to stick to a specific version of the image, but instead using the xxx-latest one to avoid similar problem.
Figure 3: If you can you should use latest version of all images.
The reason why I choose windows-2016 is that I have no 2019 container image for some of the image I’m using, so I forced older image version. Clearly now it is time for me to update my Docker Images (something I’ve already done if you read latest post) and move to windows-latest.
As a rule of thumb, if you do not have specific requirements, it is preferrable to choose xxxx-latest version of images to avoid such a problem