Skip to content
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

DRY our .github/workflow #234

Merged
merged 3 commits into from
Mar 9, 2023
Merged

DRY our .github/workflow #234

merged 3 commits into from
Mar 9, 2023

Conversation

samcunliffe
Copy link
Member

@samcunliffe samcunliffe commented Feb 21, 2023

... it was a bit WET. (Where T=thrice)

Changes

I've merged all three OS builds (plus the linter job) into one workflow. And I've made the steps dependent:

linter → builds → system tests.

This means:

  1. the full CI check suite is now slightly slower because the builds wait for the linter and the system tests wait for all the builds
  2. we never waste time caching/downloading or running unnecessary steps for PRs where we don't pass even the linter.

I think we want 2 because: 🌱 . I looked into making the system tests not wait for all builds (i.e. start as soon as the build artifact appears), but I couldn't figure out how to do it short of merging the system tests and builds job back together. And I anyway don't really want to do that because of 2.

Name

Since it's back to one workflow we only have three badges now. I've called it "build and test" but open to renaming it if you can think of anything better.

Sorry for the noise!

I realise now that I almost certainly should have tested this on my own private fork with no watchers. Potentially you got a lot of rebasing, force push and commit emails. Hopefully, everyone unsubscribed. My bad.

@samcunliffe samcunliffe added testing Adding or requesting more test coverage housekeeping Code cleanup review required A review approval is required before merging labels Mar 8, 2023
@samcunliffe samcunliffe marked this pull request as ready for review March 8, 2023 20:37
Copy link
Collaborator

@willGraham01 willGraham01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly a few small comments for my own GitHub actions understanding. Also we might be able to close #41 now?

.github/workflows/ci.yml Show resolved Hide resolved
.github/workflows/ci.yml Show resolved Hide resolved
.github/workflows/ci.yml Show resolved Hide resolved
.github/workflows/ci.yml Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@samcunliffe samcunliffe merged commit d695f94 into main Mar 9, 2023
@samcunliffe samcunliffe deleted the 141-dry-workflow branch March 9, 2023 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Code cleanup review required A review approval is required before merging testing Adding or requesting more test coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce duplication in the GitHub CI actions.
3 participants