Skip to content

Adding CI for hydra - #35

Open
jpbogle wants to merge 6 commits into
GlassEaters:mainfrom
solana-nft-programs:jeremy/ci
Open

Adding CI for hydra#35
jpbogle wants to merge 6 commits into
GlassEaters:mainfrom
solana-nft-programs:jeremy/ci

Conversation

@jpbogle

@jpbogle jpbogle commented May 25, 2022

Copy link
Copy Markdown
Contributor

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

vercel Bot commented May 25, 2022

Copy link
Copy Markdown

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

jpbogle commented May 27, 2022

Copy link
Copy Markdown
Contributor Author

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