Skip to content

Run each implementation's tests in separate Github Actions steps#841

Merged
jeaye merged 3 commits intojank-lang:mainfrom
basilisp-lang:refactor/gh-actions-workflows
Jan 4, 2026
Merged

Run each implementation's tests in separate Github Actions steps#841
jeaye merged 3 commits intojank-lang:mainfrom
basilisp-lang:refactor/gh-actions-workflows

Conversation

@chrisrink10
Copy link
Contributor

As I was working on #840 I realized that it isn't terribly easy to know when my changes might have affected other implementations, so I was hoping to have a feedback loop with CI. I split up each implementation into a separate Github Action step so they could all run in parallel and report back on the PR as a check. It's a bit duplicative right now because I just copied and pasted the different steps. There are ways to reduce that duplication, but I decided to err on the side of simplicity rather than attempting to over-engineer the YAML.

I had a mind to add some additional bb tasks in another PR to make it easier to run all of the test suites locally as well, so do let me know if that might be worth doing. The trick there is that I use a Mac so I'm sure I wouldn't be able to configure the steps for setting up various different Clojure implementations across multiple different OSes.

Just to note: this is just a suggestion to help improve the feedback loop for folks submitting, so let me know if this is actually not useful or preferred. Happy to close and continue with what was there if it was set up as such for a reason. Thanks!

on:
pull_request:
branches: [main]
types: [ opened, synchronize, reopened ]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Run on all PRs, rather than only main. I was wondering if perhaps you elected not to do this since it would use your org's actions budget.

Copy link
Member

Choose a reason for hiding this comment

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

Nah, this is free for us. Is there a benefit to specifying these types vs the default types for pull_request?

Copy link
Contributor Author

@chrisrink10 chrisrink10 Jan 3, 2026

Choose a reason for hiding this comment

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

I had copied this from my own actions which I pulled from some other actions definition years ago, so I was just blindly copying 😅

Seems like these are the defaults for pull_request. I'll remove them.

@jeaye jeaye requested a review from E-A-Griffin January 3, 2026 18:47
dotnet tool install --global Clojure.Main --version 1.12.3-alpha4
dotnet tool install --global Clojure.Cljr --version 0.1.0-alpha6
- name: Run babashka tests
run: bb test-bb
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are we running Babashka tests here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Missed this during cleanup. Thanks for pointing it out! Fixed in 9294bfe

@chrisrink10 chrisrink10 requested a review from jeaye January 4, 2026 19:28
@jeaye jeaye merged commit 74379a6 into jank-lang:main Jan 4, 2026
5 checks passed
@jeaye
Copy link
Member

jeaye commented Jan 4, 2026

Great work, Chris!

@chrisrink10 chrisrink10 deleted the refactor/gh-actions-workflows branch January 24, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants