From ccd26a8dbc9860a646c06c0ab6cd48c74847302f Mon Sep 17 00:00:00 2001 From: Sergey Kaunov Date: Sat, 23 Sep 2023 21:48:15 +0300 Subject: [PATCH] Basic NPM workflow for both packages (#36) further improvements would be code coverage skipping changes that doesn't touch that two packages --- .github/workflows/npm.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/npm.yml diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml new file mode 100644 index 0000000..8408d1a --- /dev/null +++ b/.github/workflows/npm.yml @@ -0,0 +1,27 @@ +name: Jest NPM test suite (, ) +on: [push, pull_request] + +jobs: + test: + name: npm test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: JavaScript tests + uses: actions/setup-node@v3 + with: + node-version: 18 + - run: | + cd javascript + npm install + npm test + + - name: JavaScript `circom` tests + uses: actions/setup-node@v3 + with: + node-version: 18 + - run: | + cd circuits + npm install + npm test