Skip to content

Backend: Trigger Detekt from Build#5514

Open
DavidArthurCole wants to merge 5 commits intohannibal002:betafrom
DavidArthurCole:backend/github-detekt-cache
Open

Backend: Trigger Detekt from Build#5514
DavidArthurCole wants to merge 5 commits intohannibal002:betafrom
DavidArthurCole:backend/github-detekt-cache

Conversation

@DavidArthurCole
Copy link
Copy Markdown
Contributor

What

See conversation here:
https://discord.com/channels/997079228510117908/1250434494473834597/1488246359999123678

This makes the detekt CI run(s) trigger from the build step of the workflow, rather than triggering on push - this lets us "cache" the build output so that detekt doesn't entirely re-build the code from scratch, when it doesn't need to.

Changelog Technical Details

  • Made detekt runner in github run after build. - Daveed

@github-actions github-actions bot added the Backend A backend pull request that will be merged soon label Mar 30, 2026
@DavidArthurCole

This comment was marked as outdated.

@DavidArthurCole

This comment was marked as outdated.

@DavidArthurCole

This comment was marked as outdated.

@DavidArthurCole DavidArthurCole marked this pull request as draft March 30, 2026 19:49
@DavidArthurCole
Copy link
Copy Markdown
Contributor Author

This is as good as I can get it, for now. The main goal was to have detekt re-use the build cache, which it now does;

DavidArthurCole#23

Unfortunately, the process of detektMain still takes a whole lot longer, but c'est la vie.

@DavidArthurCole DavidArthurCole marked this pull request as ready for review March 30, 2026 21:58
@DavidArthurCole
Copy link
Copy Markdown
Contributor Author

And in the case that git does some bull shittery to that PR after I rewind my beta branch:
https://github.com/DavidArthurCole/SkyHanni/actions/runs/23768821374/job/69255665396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend A backend pull request that will be merged soon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant