Wednesday, November 24, 2021
Elixir cache busting in GitHub actions
This article was written over 2 years ago. Information and code examples may be out of date.
Most blogs will show a simple Elixir GitHub action workflow with these cache busting settings:
However, the Elixir version might change from to out from under you. This can cause Dialyzer errors like so:
To solve it, use the output of the action for the cache keys like so:
While this is more verbose, it ensures that the cache doesn't cause issues with Dialyzer and Elixir versions changing out from under you.