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

Adding CI for hydra #35

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jpbogle
Copy link
Contributor

@jpbogle jpbogle commented May 25, 2022

Includes 4 commits numbered below. Example of the CI checks can be seen here solana-nft-programs#3

  1. adding gh-actions
  • install base dependencies action
  • install solana action
  • install anchor action
  • install soteria action

1.1 Test workflow that does

  • clippy checks
  • rust fmt checks
  • soteria checks
  • spins up local-test-validator and clones metaplex and runs the test suite against it

I tried using amman in the workflows setup but it doesnt work because of the dependency on local mpl, I looked into using the amman clone feature but it also doesnt work in CI and solana-local-validator works fine in CI

The test suit uses test reporter to report back to the active PR

  1. Anchor rename: I had to rename the lib from hydra to hydra_wallet so that anchor deploy works into the local validator. I could get around this but I think its correct to name the lib the same as the name anyways. Presumably you had to change the name because of crates collision

  2. Soteria unsafe math operations - this commit addresses issues found in soteria. They are not really issues but its prudent to use checked math operations

  3. Rust fmt - juts ran rust fmt to format the program

  4. Rust clippy checks

Clippy is a decently large commit but it should be non-functional changes only clippy warnings fixes

image

@vercel
Copy link

vercel bot commented May 25, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
hydra-dox ✅ Ready (Inspect) Visit Preview May 27, 2022 at 8:33AM (UTC)

@jpbogle
Copy link
Contributor Author

jpbogle commented May 27, 2022

Added clippy commit as well

@jpbogle jpbogle mentioned this pull request May 27, 2022
jpbogle added 2 commits May 27, 2022 01:05
Switch amman to solana-local-validator

Testing setup

Switch back to amman

Anchor build

Add more logs

Add more logs

Switch back to anchor

Rename keypair

Anchor provider fix

Add logs back

Fix keypair name

Test reporter

Debug test reporter

Revert name change

Bump solana version
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.

1 participant