You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
864 B

  1. name: Test
  2. on: [ push, pull_request ]
  3. jobs:
  4. test:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. node-version: [14.x]
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Use Node.js ${{ matrix.node-version }}
  12. uses: actions/setup-node@v1
  13. with:
  14. node-version: ${{ matrix.node-version }}
  15. - name: install c dependencies
  16. run: |
  17. sudo apt install -y nlohmann-json3-dev
  18. sudo apt install -y nasm
  19. - name: Prepare circom
  20. run: |
  21. # once circom binary is published, instead of compiling from source
  22. # every time, use the published binaries
  23. git clone https://github.com/iden3/circom.git
  24. cd circom
  25. cargo build --release
  26. cargo install --path circom
  27. - name: run tests
  28. run: |
  29. npm cache clean --force
  30. npm install
  31. npm run test