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

Merged
merged 5 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
push:
branches:
- main
pull_request:
branches:
- main
- dev

jobs:
setup-and-run:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Docker
uses: docker/setup-buildx-action@v2

- name: Install Aztec CLI
run: |
curl -s https://install.aztec.network > tmp.sh
bash tmp.sh <<< yes "yes"

- name: Update path
run: echo "/home/runner/.aztec/bin" >> $GITHUB_PATH

- name: Set Aztec version and start sandbox
run: |
VERSION=0.69.1 aztec-up
aztec start --sandbox &

- name: Install project dependencies
run: yarn

- name: Compile, generate code, and run tests
run: script -e -c "${AZTEC_NARGO:-aztec-nargo} compile"

- name: Codegen
run: script -e -c "aztec codegen target --outdir src/artifacts"

- name: Run tests
run: script -e -c "NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --config jest.integration.config.json && aztec test"

2 changes: 1 addition & 1 deletion Nargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ authors = [ "" ]
compiler_version = ">=0.18.0"

[dependencies]
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "aztec-packages-v0.69.0", directory = "noir-projects/aztec-nr/aztec" }
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "aztec-packages-v0.69.1", directory = "noir-projects/aztec-nr/aztec" }
5 changes: 4 additions & 1 deletion codegenCache.json
Copy link
Collaborator

@critesjosh critesjosh Jan 14, 2025

Choose a reason for hiding this comment

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

can you delete this file? then i think its good to go

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is not being added but modified, should we delete and add it to the .gitignore?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes, you are right. ill merge and fix it

Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"easy_private_voting_contract-EasyPrivateVoting.json": "4662c1c3f60516d75a615dd7f04c52b2c8536e641e8ad3d3f25a052a48d7ed40"
"easy_private_voting_contract-EasyPrivateVoting.json": {
"contractName": "EasyPrivateVoting",
"hash": "e3d673e495baee1ae2e9880c8b24461819cce93ae968a4d72a4d76fae36b8f16"
}
}
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
"compile": "${AZTEC_NARGO:-aztec-nargo} compile",
"deploy": "node --loader ts-node/esm scripts/deploy.ts",
"get-block": "node --loader ts-node/esm scripts/getBlock.ts",
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --config jest.integration.config.json && aztec test",
"test": "yarn test:js && yarn test:nr",
"test:js": "NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --config jest.integration.config.json",
"test:nr": "aztec test",
"update": "aztec update --contract . && ./.github/scripts/update_contract.sh $(grep -oP 'tag\\s*=\\s*\"\\K[^\"]+' \"Nargo.toml\" | head -1) && yarn"
},
"dependencies": {
"@aztec/accounts": "0.69.0",
"@aztec/aztec.js": "0.69.0",
"@aztec/noir-contracts.js": "0.69.0",
"@aztec/accounts": "0.69.1",
"@aztec/aztec.js": "0.69.1",
"@aztec/noir-contracts.js": "0.69.1",
"@types/node": "^22.5.1"
},
"devDependencies": {
Expand Down
178 changes: 86 additions & 92 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,40 @@
"@jridgewell/gen-mapping" "^0.3.5"
"@jridgewell/trace-mapping" "^0.3.24"

"@aztec/[email protected].0":
version "0.69.0"
resolved "https://registry.yarnpkg.com/@aztec/accounts/-/accounts-0.69.0.tgz#980bd1f5fd45320bdcf12f37b98651b07d7507bd"
integrity sha512-IfCpYD+PMx/CT7duxZfa6cNTQIsRR9HmEnNTrP4TMhRYfc5NUehS8HTjox2mdPqubS+K+mMolH35oJO2qlXKug==
dependencies:
"@aztec/aztec.js" "0.69.0"
"@aztec/circuit-types" "0.69.0"
"@aztec/circuits.js" "0.69.0"
"@aztec/entrypoints" "0.69.0"
"@aztec/ethereum" "0.69.0"
"@aztec/foundation" "0.69.0"
"@aztec/types" "0.69.0"
"@aztec/[email protected].1":
version "0.69.1"
resolved "https://registry.yarnpkg.com/@aztec/accounts/-/accounts-0.69.1.tgz#9a0ca99a514bfc04d75f20503882b934ad20d12f"
integrity sha512-eszCnQn0Bz1+dESZmdtrDOC3EJVKA93kvfj8tjyNX3Uo/qQXvKFdYsT2nhkAvU56f5Ni+Ux96sP6FFaQv9SA3w==
dependencies:
"@aztec/aztec.js" "0.69.1"
"@aztec/circuit-types" "0.69.1"
"@aztec/circuits.js" "0.69.1"
"@aztec/entrypoints" "0.69.1"
"@aztec/ethereum" "0.69.1"
"@aztec/foundation" "0.69.1"
"@aztec/types" "0.69.1"
tslib "^2.4.0"

"@aztec/[email protected].0":
version "0.69.0"
resolved "https://registry.yarnpkg.com/@aztec/aztec.js/-/aztec.js-0.69.0.tgz#220d862412843ee2dca2075895a3e3507b72f69c"
integrity sha512-VlBG5XN0quyg5xklhdCePKTDHxnoAa1v7jpP67mT3ONu39pMvo/D2d0EtNp7VUpEm3WYDamOpRfp1HoOLJYbFQ==
dependencies:
"@aztec/circuit-types" "0.69.0"
"@aztec/circuits.js" "0.69.0"
"@aztec/ethereum" "0.69.0"
"@aztec/foundation" "0.69.0"
"@aztec/l1-artifacts" "0.69.0"
"@aztec/protocol-contracts" "0.69.0"
"@aztec/types" "0.69.0"
"@aztec/[email protected].1":
version "0.69.1"
resolved "https://registry.yarnpkg.com/@aztec/aztec.js/-/aztec.js-0.69.1.tgz#7cde50d5c2ad9116908c7e2d6215b8ef0cba92fa"
integrity sha512-t0GVQvkrkadleKK+Xwj+KEB2U0+YvCKhB9/WTwlGcA3Fk/zWWBGhrnl/ish/LCCShScUHGYGH2+EtywLixSzTA==
dependencies:
"@aztec/circuit-types" "0.69.1"
"@aztec/circuits.js" "0.69.1"
"@aztec/ethereum" "0.69.1"
"@aztec/foundation" "0.69.1"
"@aztec/l1-artifacts" "0.69.1"
"@aztec/protocol-contracts" "0.69.1"
"@aztec/types" "0.69.1"
axios "^1.7.2"
tslib "^2.4.0"
viem "^2.7.15"

"@aztec/[email protected].0":
version "0.69.0"
resolved "https://registry.yarnpkg.com/@aztec/bb.js/-/bb.js-0.69.0.tgz#d9ea6a57393712f3271bc200a29d4dcf2b88f470"
integrity sha512-UoyIzI67Ry/tMn0nBgx+umFMnpA4oYYKQXvfZvO+dNE9LBS/1cwja/SpRpVzG0xn8agZ+HS+WmOQ8050UYaUZg==
"@aztec/[email protected].1":
version "0.69.1"
resolved "https://registry.yarnpkg.com/@aztec/bb.js/-/bb.js-0.69.1.tgz#6616fb70ab1c681b87e5e0fb768deb07bef45213"
integrity sha512-arz++pPCDwJVKWeiI4RfxrLA6w+TQVL/MTononayv3Jm2j5vtXC0va3/nrQQukaJT0DUaKWLK7UuIFTSuOIKOA==
dependencies:
comlink "^4.4.1"
commander "^12.1.0"
Expand All @@ -57,67 +57,66 @@
pako "^2.1.0"
tslib "^2.4.0"

"@aztec/[email protected].0":
version "0.69.0"
resolved "https://registry.yarnpkg.com/@aztec/circuit-types/-/circuit-types-0.69.0.tgz#15fa2692bcf3eea5f412f2d6613a950ef78bb0d5"
integrity sha512-zhWnUwaxGGoygr7XPhcaCY9Xu5ix4RxOwysqIcuXFqPx1vfd1w37gCP+loK4+IywebXYrBL5/nLUsFslk+iYyQ==
"@aztec/[email protected].1":
version "0.69.1"
resolved "https://registry.yarnpkg.com/@aztec/circuit-types/-/circuit-types-0.69.1.tgz#b4b1ed12522be351a44fc69bdd8c8688a574f56e"
integrity sha512-wluhI+pj0SRJZiGTAEZvy5J7fpvEiagQDFd3rtGH7Lm0KJmh2nDa33o7mIMHL0JbLmdMm1KBWiCefJLMvYXdjQ==
dependencies:
"@aztec/circuits.js" "0.69.0"
"@aztec/ethereum" "0.69.0"
"@aztec/foundation" "0.69.0"
"@aztec/types" "0.69.0"
"@aztec/circuits.js" "0.69.1"
"@aztec/ethereum" "0.69.1"
"@aztec/foundation" "0.69.1"
"@aztec/types" "0.69.1"
browserify-cipher "^1.0.1"
lodash.clonedeep "^4.5.0"
lodash.isequal "^4.5.0"
lodash.times "^4.3.2"
tslib "^2.5.0"
zod "^3.23.8"

"@aztec/[email protected].0":
version "0.69.0"
resolved "https://registry.yarnpkg.com/@aztec/circuits.js/-/circuits.js-0.69.0.tgz#5da795aa9e879f8e721d8db5c96b1a7cb51e4359"
integrity sha512-vW9WcxJ1OBGXx9jLGT7K6QRvJC8ucP0dzFcLoS9cdAuljnRDYm5d7E9oQtWTnnmmN7sGXq0pQmwvjJ668h8khQ==
"@aztec/[email protected].1":
version "0.69.1"
resolved "https://registry.yarnpkg.com/@aztec/circuits.js/-/circuits.js-0.69.1.tgz#6423d922cfd62a9aa07e51d2e8f0dc4725218ebe"
integrity sha512-Vri/laVbsGG0O4vX2ObAyeZPrLFXbRMjvXwmuutv1VSbo2uaE3NFgpNqhXPECoYJluyKIvXvIB5cAatf5B5tfA==
dependencies:
"@aztec/bb.js" "0.69.0"
"@aztec/ethereum" "0.69.0"
"@aztec/foundation" "0.69.0"
"@aztec/types" "0.69.0"
"@aztec/bb.js" "0.69.1"
"@aztec/ethereum" "0.69.1"
"@aztec/foundation" "0.69.1"
"@aztec/types" "0.69.1"
eslint "^8.35.0"
tslib "^2.4.0"
zod "^3.23.8"

"@aztec/[email protected].0":
version "0.69.0"
resolved "https://registry.yarnpkg.com/@aztec/entrypoints/-/entrypoints-0.69.0.tgz#44b8d9cbffc2637669fa3ef2152df6c364900138"
integrity sha512-tJM1EdwGhHfC6ki7JmuGM2D2ThaxITjCYfQMOoSojWn5m+lMJl4K7EqnLFIjkPrOHpXuqqWN+fCH5bLgqieuPw==
"@aztec/[email protected].1":
version "0.69.1"
resolved "https://registry.yarnpkg.com/@aztec/entrypoints/-/entrypoints-0.69.1.tgz#634af620d6921923e5c78cb492df781c2cacaf5b"
integrity sha512-1PXvaF0JuAfVhO2ORgstDyjbLcIJeziPo0aRXvbHOsAupZew2u7ALr7Mxh/7q5W0jLm2/egW7McCjFoDzBu/CQ==
dependencies:
"@aztec/aztec.js" "0.69.0"
"@aztec/circuit-types" "0.69.0"
"@aztec/circuits.js" "0.69.0"
"@aztec/foundation" "0.69.0"
"@aztec/protocol-contracts" "0.69.0"
"@aztec/aztec.js" "0.69.1"
"@aztec/circuit-types" "0.69.1"
"@aztec/circuits.js" "0.69.1"
"@aztec/foundation" "0.69.1"
"@aztec/protocol-contracts" "0.69.1"
tslib "^2.4.0"

"@aztec/[email protected].0":
version "0.69.0"
resolved "https://registry.yarnpkg.com/@aztec/ethereum/-/ethereum-0.69.0.tgz#91e77807cb50bbe44d7544993f3ff7e5d678012f"
integrity sha512-8ExUBijWsc8pKtEa0odztcqFMT9dnMkMORNIdJ1K/e6EuX0+wG2GsLf3QV2WVw1t5pgCQpm5hEejUbZnIcn8DQ==
"@aztec/[email protected].1":
version "0.69.1"
resolved "https://registry.yarnpkg.com/@aztec/ethereum/-/ethereum-0.69.1.tgz#dbbd26335c0da7b3d4c1c5ab891d94d8250de218"
integrity sha512-FAsHtEf+Zl+4OyW8eXZ8hVFb1lffTySeavuzs/568xEqY8a/d1+FFbzDEwuzc7GVweawmIBRmHwY1cxANUDo4A==
dependencies:
"@aztec/foundation" "0.69.0"
"@aztec/l1-artifacts" "0.69.0"
"@aztec/foundation" "0.69.1"
"@aztec/l1-artifacts" "0.69.1"
"@viem/anvil" "^0.0.10"
dotenv "^16.0.3"
get-port "^7.1.0"
tslib "^2.4.0"
viem "^2.7.15"
zod "^3.23.8"

"@aztec/[email protected].0":
version "0.69.0"
resolved "https://registry.yarnpkg.com/@aztec/foundation/-/foundation-0.69.0.tgz#19e88e4b9f0cbf36e1afd93d8c7e75e73ee0e2e6"
integrity sha512-60NeM9S5MR+5OUX0+mp8AwxfBVRH9ubuWgf7BlTIdQ0Nf7ss/6r9/QkjJUAsRgtHpr2rxzIy6t+dSA6BFnE6vA==
"@aztec/[email protected].1":
version "0.69.1"
resolved "https://registry.yarnpkg.com/@aztec/foundation/-/foundation-0.69.1.tgz#ecb4ceef3947881ff6915536d28a6f150dc533a9"
integrity sha512-+AWTZaNrefIXiBWcmnEf521iDSRB72CsXKj1ubUEE62B6/ba5I2ddT4m5DtGnb7YHrEGg/ESXnEqSVv7jrllmA==
dependencies:
"@aztec/bb.js" "0.69.0"
"@aztec/bb.js" "0.69.1"
"@koa/cors" "^5.0.0"
"@noble/curves" "^1.2.0"
bn.js "^5.2.1"
Expand All @@ -142,40 +141,40 @@
sha3 "^2.1.4"
zod "^3.23.8"

"@aztec/[email protected].0":
version "0.69.0"
resolved "https://registry.yarnpkg.com/@aztec/l1-artifacts/-/l1-artifacts-0.69.0.tgz#661935d60dc0c6cf338d517f38fec1fab0ce258c"
integrity sha512-We8uxlAoG/TcB27wI8FaW2rzTi33Xxtee2gi8xiQ8w8zWpuFdyIFZIqsHmGRpqv4Q3h4no9T0/Mmy1Z3VRANGw==
"@aztec/[email protected].1":
version "0.69.1"
resolved "https://registry.yarnpkg.com/@aztec/l1-artifacts/-/l1-artifacts-0.69.1.tgz#a10b1505931609b65a53306f6973fa588d120ded"
integrity sha512-DQZGPCBrz9+wZfN2MpbA9kDXxZQou36lNqE1OtZXKI556jrECJn8EwURO4eayALMvTMVTKBdOihwUWPIwi0pvA==
dependencies:
tslib "^2.4.0"

"@aztec/[email protected].0":
version "0.69.0"
resolved "https://registry.yarnpkg.com/@aztec/noir-contracts.js/-/noir-contracts.js-0.69.0.tgz#6123c06f4f34095db231845db8f90865fad4ad0d"
integrity sha512-72/8IAGQXv85m0MmwNLJ+dfTIYbc8AoTl90uMOhzwdXEKPSELy30OZZc1ngLxLgZL6OrXOVkYfuVWYWWbLpDuQ==
"@aztec/[email protected].1":
version "0.69.1"
resolved "https://registry.yarnpkg.com/@aztec/noir-contracts.js/-/noir-contracts.js-0.69.1.tgz#dcfd880ef16d05b4c9080dc848bd6d6c80337568"
integrity sha512-c6DbsnmHKymV7Ru8qdy139UgZ0jhF6Muw0/FPJOZIBVFjW78wDedTK8/dQRdCiWWXAcrYvpUK4N85OzbLoVV0Q==
dependencies:
"@aztec/aztec.js" "0.69.0"
"@aztec/aztec.js" "0.69.1"
tslib "^2.4.0"

"@aztec/[email protected].0":
version "0.69.0"
resolved "https://registry.yarnpkg.com/@aztec/protocol-contracts/-/protocol-contracts-0.69.0.tgz#2676efb1b836ec8692673fff1833a5f7115a3da0"
integrity sha512-iCE9p9trz1op0nlTIyLtaUKtkxDMtvmQJJgGpGdMzSe4Uyz9NXb45110lK9cZ9s75BYMr0sa2xw/lla4GEkZqg==
"@aztec/[email protected].1":
version "0.69.1"
resolved "https://registry.yarnpkg.com/@aztec/protocol-contracts/-/protocol-contracts-0.69.1.tgz#7c1d0e88ea287e03da8c63547814730a11d9b384"
integrity sha512-zkusi+IlMb6F67A+DIfZxU/Gyqvtix5bPYlZ15yEyqGDZorO0rN6Ucp2f1jHS5kl32sXy15xaWxvUFYxu/bSAw==
dependencies:
"@aztec/circuits.js" "0.69.0"
"@aztec/foundation" "0.69.0"
"@aztec/types" "0.69.0"
"@aztec/circuits.js" "0.69.1"
"@aztec/foundation" "0.69.1"
"@aztec/types" "0.69.1"
lodash.chunk "^4.2.0"
lodash.omit "^4.5.0"
tslib "^2.4.0"

"@aztec/[email protected].0":
version "0.69.0"
resolved "https://registry.yarnpkg.com/@aztec/types/-/types-0.69.0.tgz#b4960d14769dc84e64fcbb7ac9755eafe151aa86"
integrity sha512-xweBKDHcLAC2iUGrXkh7DBtxBOp8+oI7mb3U3jZjhVdEcOUHFCm4lAUJGmjrGc8J1aQoCkoyQJTIF+W4Wokp8w==
"@aztec/[email protected].1":
version "0.69.1"
resolved "https://registry.yarnpkg.com/@aztec/types/-/types-0.69.1.tgz#8b84f20ff97dfe79edd5199ec21dbe4faf4a46d5"
integrity sha512-kFY1ttKvPSImhxHfw1TuaVKgkAG3resxAelfBOOcMOVQCmvfsxqwvWgUGk2D7VncJKu6CvgSuo1F3eGHw42nrw==
dependencies:
"@aztec/ethereum" "0.69.0"
"@aztec/foundation" "0.69.0"
"@aztec/ethereum" "0.69.1"
"@aztec/foundation" "0.69.1"

"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.24.7":
version "7.24.7"
Expand Down Expand Up @@ -2119,11 +2118,6 @@ get-port@^6.1.2:
resolved "https://registry.yarnpkg.com/get-port/-/get-port-6.1.2.tgz#c1228abb67ba0e17fb346da33b15187833b9c08a"
integrity sha512-BrGGraKm2uPqurfGVj/z97/zv8dPleC6x9JBNRTrDNtCkkRF4rPwrQXFgL7+I+q8QSdU4ntLQX2D7KIxSy8nGw==

get-port@^7.1.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/get-port/-/get-port-7.1.0.tgz#d5a500ebfc7aa705294ec2b83cc38c5d0e364fec"
integrity sha512-QB9NKEeDg3xxVwCCwJQ9+xycaz6pBB6iQ76wiWMl1927n0Kir6alPiP+yuiICLLU4jpMe08dXfpebuQppFA2zw==

get-stream@^6.0.0, get-stream@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7"
Expand Down