-
Notifications
You must be signed in to change notification settings - Fork 46
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
Rewrite GHA workflow using reusable actions #192
Conversation
This is breaking things: Line 23 in 345cca0
@nadjaheitmann mind having a look? |
Looks like some artifact from the plugin template. I'll have a look. |
IMHO, this line can be removed. As @nadjaheitmann mentions, it came from the plugin template but the actual In contrast, Foreman Ansible added the and removes it shortly after it, in a cleanup commit: theforeman/foreman_ansible@e2cc1b5#diff-128d579f540e340778f9670e403a75f9d6ac1d2821f4d1adae3883d21864aac8L1 Still, I don't understand why this issue didn't occur earlier. |
Thanks @bastian-src !! |
6d80c51
to
0908dc5
Compare
Thanks everyone! I have made the changes as suggested, also the below line was causing another issue and I find it didn't have any dependencies so removed that also, which was causing another failure, Lmk if I'm missing something here. Line 24 in 345cca0
And to continue running the workflow, we need |
It's ok to include another PR in here. A PR can have multiple commits. In this case I think it'd be more obvious |
Sounds like a good idea. It would be nice to have a working pipeline for rubocop since this is what you are fixing here. |
I'd also expect that https://github.com/theforeman/foreman_salt/blob/master/.github/workflows/unit_tests.yml would be rewritten to use the reusable actions. You can probably merge both flows into a single file, like we do with other plugins. |
0aa5f63
to
68c9d56
Compare
Is this done completely? Or does it need another PR to work? |
I think this fails because it doesn't run So this is a case where there are integration tests that use a browser but the plugin itself doesn't have webpack. @evgeni can we also detect |
We can. Or should we use |
I'd prefer |
Fair. Try theforeman/actions#33 |
Seems that fixed it, nice. |
@ekohl, I'm a bit unclear on the issue. Could you help me understand? I want to make sure I understand the issue correctly and the fix you and @evgeni did here. |
@archanaserver this plugin only has "old style" (sprockets) based assets (there is no |
Make sense now, thanks @evgeni! |
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.
with my "we should use the shared actions workflow for all plugins" hat, this looks good.
one small suggestion, but not a blocker.
@theforeman/salt please weigh in, I would prefer your ack over mine ;-)
pull_request: | ||
push: | ||
branches: | ||
- master |
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.
I would include SALT-*
here:
- master | |
- 'master' | |
- 'SALT-*' |
but it's up to the real maintainers of this plugin to decide :)
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.
Sounds like a good idea, but also something that isn't here today so I wouldn't consider it blocking.
Thanks @archanaserver & @ekohl & @evgeni |
For reference: #191