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

test: adding test CI workflow #29

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

Conversation

wei3erHase
Copy link
Contributor

@wei3erHase wei3erHase commented Dec 27, 2024

addressing #17, the workflow downloads dependencies and executes yarn test

@wei3erHase wei3erHase changed the title test: adding test CI workflow (#1) test: adding test CI workflow Dec 27, 2024

- name: Set Aztec version and start sandbox
run: |
VERSION=0.68.0 aztec-up
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of hardcoding 0.68.0, maybe we can fetch the latest release using something like this step?

- name: Get version

Copy link
Contributor Author

@wei3erHase wei3erHase Dec 27, 2024

Choose a reason for hiding this comment

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

hmm, i was thinking to add it to the update_contract.sh script, but then figured out that is a tool that you use to push the new version

should we fetch the latest version, it'd be incompatible with the package.json one, since the latest one right now is 0.68.2, what do you think?

options are:

  • expect the dev to manually update the workflow (doing global search for 0.68.0 and replace for 0.68.2)
  • add a snippet in the update_contract.sh that updates the workflow file
  • add an api call in the workflows file, that may differ with the package.json versions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

update: implemented it here defi-wonderland#2, had to upgrade the package.json versions as well, because having a non-matching version if aztec-up vs the imported packages makes the accounts "not being registered" error.

wdyt @critesjosh? unless we dynamically create the package json, we'll be always facing this issue where a test could start failing since a new version was released, i'm not pleased about that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

update: reverted the package.json changes by pulling the updated main up branch

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.

2 participants