Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflows #3

Open
wants to merge 40 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
300eef0
changing node target
luiz-lvj Sep 13, 2024
2523403
updating to garaga_ts
luiz-lvj Sep 13, 2024
9f4f8b3
groth 16 parser
luiz-lvj Sep 25, 2024
2258a43
parsing groth 16 ready
luiz-lvj Sep 25, 2024
4181b89
parser working for groth 16 proof
luiz-lvj Sep 26, 2024
fc38e4a
tests for verifying key proof running
luiz-lvj Sep 26, 2024
47f9d11
tests for verifying key working
luiz-lvj Sep 26, 2024
d94a443
tests for verifying key working
luiz-lvj Sep 26, 2024
ef7fceb
Merge branch 'main' of github.com:luiz-lvj/garaga into groth16_parser
luiz-lvj Sep 27, 2024
c19b8e9
refactoring parsing to add object parser on groth16 Proof
luiz-lvj Sep 27, 2024
80a680f
refactoring parsing to add object parser on verifying key groth16 Proof
luiz-lvj Sep 27, 2024
d5ccc83
creating serializeGroth16ProofToCallData and necessary functions
luiz-lvj Sep 27, 2024
de75807
changing rootDir to ./ in order to build with tests
luiz-lvj Sep 27, 2024
3152615
changing wasm build workflow due to pre-commit
luiz-lvj Sep 27, 2024
a7de86e
removing unnecessary functions and adding node workflow
luiz-lvj Sep 28, 2024
1551d25
removing bypass on build github workflow
luiz-lvj Sep 28, 2024
8c47e43
removing wasm pkg from end-of-file-fixer pre-commit script
luiz-lvj Sep 28, 2024
5fbdfd8
excluding wasm pkg from trailing whistespace pre-commit
luiz-lvj Sep 28, 2024
56181c5
updating wasm build
luiz-lvj Sep 29, 2024
cf05bbe
updating wasm after build
luiz-lvj Sep 29, 2024
c11bea6
wasm build from docker
luiz-lvj Sep 29, 2024
494f45a
files generated by docker
luiz-lvj Sep 29, 2024
fd99452
files generated by build
luiz-lvj Sep 29, 2024
08186a0
testing workflow
luiz-lvj Sep 29, 2024
049ed9e
changing pre-commit EOF fixer
luiz-lvj Sep 29, 2024
3670f85
test old workflow
luiz-lvj Sep 29, 2024
1b9c5ac
updating build workflow
luiz-lvj Sep 29, 2024
3c1d328
files geneerated bu act build
luiz-lvj Sep 29, 2024
2d17977
pre commit working on act
luiz-lvj Sep 29, 2024
9ca7741
adding EOF to file
luiz-lvj Sep 29, 2024
392e480
test workflow on act
luiz-lvj Sep 29, 2024
06b2cda
testing build workflow
luiz-lvj Sep 29, 2024
490b5d3
removing wasm-pack version
luiz-lvj Sep 29, 2024
612429f
files generated by npm build
luiz-lvj Sep 29, 2024
3a12b45
files generated by node build
luiz-lvj Sep 29, 2024
c1ec948
Merge branch 'groth16_parser' of github.com:luiz-lvj/garaga into work…
luiz-lvj Sep 30, 2024
66824d6
checking versions
luiz-lvj Sep 30, 2024
3a0848b
removing rustc from print
luiz-lvj Sep 30, 2024
4d9db31
printing versions on dockerfile
luiz-lvj Sep 30, 2024
314a3f5
testing .wasm.js
luiz-lvj Sep 30, 2024
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
26 changes: 26 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: NODE

on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
workflow_dispatch:

jobs:
npm-test:
name: NPM Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Run npm test in garaga_ts
working-directory: tools/npm/garaga_ts
run: |
npm ci
npm test
10 changes: 3 additions & 7 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,9 @@ jobs:
run: |
docker compose up --build --exit-code-from app
git status --porcelain
[[ -z $(git status --porcelain) ]]
- name: Upload package file as artifact
uses: actions/upload-artifact@v4
with:
name: npm-package
path: tools/npm/garaga_ts/*.tgz
if-no-files-found: error
echo "Git diff"
git diff
[[ -z $(git status --porcelain ) ]]

test-integration:
name: Test integration
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ repos:
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: ^tools/npm/garaga_ts/src/wasm/pkg/
- id: end-of-file-fixer
exclude: \.cairo$
exclude: (\.cairo$|^tools/npm/garaga_ts/src/wasm/pkg/)
- id: check-yaml
- id: check-toml
- repo: https://github.com/psf/black
Expand Down
1 change: 1 addition & 0 deletions tools/npm/garaga_ts/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules
/dist
/*.tgz
/coverage
7 changes: 7 additions & 0 deletions tools/npm/garaga_ts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@ ENV PATH="$HOME/n/bin/:$PATH"

WORKDIR /garaga/tools/npm/garaga_ts

# Add a step to output versions
RUN echo "Rust version: $(rustc --version)" && \
echo "Cargo version: $(cargo --version)" && \
echo "wasm-pack version: $(wasm-pack --version)" && \
echo "Node version: $(node --version)" && \
echo "NPM version: $(npm --version)"

CMD npm ci && npm run build && npm pack && ./fix-chown.sh ../..
11 changes: 11 additions & 0 deletions tools/npm/garaga_ts/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/tests/**/*.test.ts'],
moduleFileExtensions: ['ts', 'js'],
transform: {
'^.+\\.ts$': 'ts-jest'
},
collectCoverage: true,
collectCoverageFrom: ['src/**/*.ts'],
};
Loading
Loading