-
Notifications
You must be signed in to change notification settings - Fork 25
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
base: main
Are you sure you want to change the base?
Conversation
|
||
- name: Set Aztec version and start sandbox | ||
run: | | ||
VERSION=0.68.0 aztec-up |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 for0.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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
chore: merging 68.2
addressing #17, the workflow downloads dependencies and executes
yarn test