Replies: 3 comments 3 replies
-
I think you are asking if the EpoxyDuino/.github/workflows/aunit_tests.yml file should be changed from: on: [push] to on: [push, pull_request] ? I'm not a serious GitHub Actions expert, but I think it is a recent change that the workflow no longer runs on the forked repo? If I recall, it was something to do with security. Before, I think I remember people complaining about the workflow test failures on their forks when they tried to send changes to some of my libraries. So now we have to manually click on a confirmation box to allow the workflow to run, (which from a security point of view, seems kinda useless because I'm always going to click "Allow"). And that also means that even with The other problem I personally have with adding So instead of changing to # Trigger on 'push'. Optional, consider adding trigger on 'pull_request':
# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#pull_request
on: [push] |
Beta Was this translation helpful? Give feedback.
-
I am not very familiar with GitHub Actions either. So yes, I was wondering if adding Like you I also saw that the workflows will run multiple times with multiple reasons for a trigger. It was somewhat distracting, but my tests don't take very long (yet). Thank you for adding a comment for the EpoxyDuino workflow! A comment is probably the best way to do it. It can be difficult to know where to look for "master templates" when I make a local copy of a file -- but now I know a good example is in .../bxparks/EpoxyDuino/.github/workflows/aunit_tests.yml |
Beta Was this translation helpful? Give feedback.
-
I came across a solution to the duplicate workflow iterations with Copied here for reference when the above link goes offline:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for creating this library! I has saved me from myself several times already.
Recently someone had a good idea for my library and submitted a pull request for it ( philj404/SimpleSerialShell#12 ).
They followed good practices on GitHub and created a fork of my repository, made their changes and submitted their pull request back to me.
When I enabled the action (for first time contributors) the pull request did not run aunit tests on their submission. The build checks ran as I expected.
I think the reason the aunit tests did not run is that the GitHub Action is set up to only run on "push". Since the changes were pushed to a fork, they did not run on "push". Since aunit_tests.yml only runs on "push", creating the pull request did not trigger a run.
So, I have a couple questions:
Thanks again for providing such a useful way to run unit tests.
Beta Was this translation helpful? Give feedback.
All reactions