-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Github actions #181
Improve Github actions #181
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to the absinthe PR, I'd prefer not to complicate the workflow with the skip logic, but the cache key improvements & running on all branches are welcome changes
Done. |
Thanks! |
I've also added a PR into some other absinthe repos with the same actions set: |
Hello.
It looks like commiting to branches excluding
master
does not run Github Actions. So users which are working on feature/bugfix branches cannot see that their changes are leading to failed tests until they'll create a pull request to master branch.So I've removed restriction against branch name for
push
events.Also I've found another quite annoying bug - step
actions/cache
does not update cache item if it was restored using a primary key.For example, some dependencies like dialyzer or other ones store their files in
deps
or_build
folders (which are cached in the workflow). But when these dependencies perform some updates of these folders, it does not lead to the updating ofmix.lock
file. File hasn't been changed -> hash is the same -> cache primary key is the same -> caching action will not update the existing cache.This will cause the increase of workflow run time because the stored cache will not be used by some steps. Until
mix.lock
will be updated which will lead to updating the cache item.Here I've appended a commit SHA to the cache primary key, so it will always be updated. But it will not affect cache reading.
What do you think about that?