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

Chore: Use reusable workflows for GitHub actions #2345

Merged
merged 8 commits into from Jan 3, 2023

Conversation

stegaBOB
Copy link
Contributor

@stegaBOB stegaBOB commented Dec 26, 2022

The tests and no-caching-tests workflows are nearly identical. The only difference currently is one caches dependencies, while the other doesn't. The rest is just duplicated code. This makes it harder to add new tests or modify existing ones as you need to change both files. This has caused issues in the past. This PR uses reusable workflows to call to the tests-reusable workflow and conditionally cache stuff based on inputs from the existing workflows.

I also updated the install-solana action to be a bit more efficient.

@vercel
Copy link

vercel bot commented Dec 26, 2022

@stegaBOB is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@Henry-E Henry-E merged commit d055c89 into coral-xyz:master Jan 3, 2023
@Henry-E
Copy link
Contributor

Henry-E commented Jan 3, 2023

Looks good

  • fixes an issue where downloading the solana cli was supposed to be cached
  • combines caching and no caching test logic into a single file

I'm still unclear in general on the conditions for caching / recaching, plus whatever is going on with setting up new runners / reusing existing compiled files but we can try to maybe roughly document that / optimise it in another PR.

Should be good to merge! Don't think it needs a changelog unless you want the props.

@stegaBOB stegaBOB deleted the stegaBOB/chore/ci-refactor branch January 3, 2023 18:25
dovahcrow pushed a commit to dovahcrow/anchor that referenced this pull request Jan 13, 2023
* reusable workflows

* fix name

* fix syntax

* fix syntax again

* update install solana

* rename stuff

* fix naming

* Update test names once more
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.

None yet

2 participants