arnaucube
arnaucube/keccak256-circomPublic Self-hosted repository
keccak256-circom/.github/workflows/test.yml
.github/workflows/test.ymlRaw
 1name: Test
 2on: [ push, pull_request ]
 3jobs:
 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