Skip to content
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
36 changes: 36 additions & 0 deletions .github/workflows/lint-witness.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: lint-witness

on:
push:
branches:
- master
pull_request:

jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.20.4
- name: lint witness
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
working-directory: witness
- name: lint witness/wazero
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
working-directory: witness/wazero
- name: lint witness/wasmer
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
working-directory: witness/wasmer
- name: lint witness/test_wasm_impls
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
working-directory: witness/test_wasm_impls
32 changes: 32 additions & 0 deletions .github/workflows/test-witness.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: test-witness

on:
push:
branches:
- master
pull_request:

jobs:
test:
strategy:
matrix:
containers:
- 1.18.10-bullseye
- 1.19.9-bullseye
- 1.20.4-bullseye
runs-on: ubuntu-20.04
container: golang:${{matrix.containers}}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: cd witness && go test -race -timeout=60s -v ./...
- run: cd witness/wazero && go test -race -timeout=60s -v ./...
- run: cd witness/wasmer && go test -race -timeout=60s -v ./...
- run: cd witness/test_wasm_impls && go test -race -timeout=300s -v ./...
2 changes: 1 addition & 1 deletion witness/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Calculates witness, that can be passed to a prover ([snarkjs](https://github.com
## Installation

```
go get github.com/iden3/go-rapidsnark/witness
go get github.com/iden3/go-rapidsnark/witness/v2
```

## Dependencies
Expand Down
129 changes: 0 additions & 129 deletions witness/circom2witnesscalc_test.go

This file was deleted.

189 changes: 0 additions & 189 deletions witness/circom2witnesscalc_wazero_test.go

This file was deleted.

Loading