This repository contains a GitHub workflow that tests that noir_wasm is compiling a matching result to nargo. The workflow uses nargo
to compile a Noir (.nr) source file and then runs a test that uses the noir_wasm
package to compile the same source file. The test passes if both outputs match.
- Clone this repository to your local machine.
- Open a terminal in the cloned directory.
- Run
yarn
to install the dependencies. - Manually use
nargo
to compile the source file located atsrc/noir-script/
. - Run
yarn test
to run the tests.
The GitHub workflow is triggered when a commit is pushed to the main
branch. The workflow consists of the following steps:
- Download and install
nargo
. - Compile the Noir (.nr) source file using
nargo
. - Use
noir_wasm
to compile the same source file. - Compare the outputs of the two compilations and pass the test if they match.