Skip to content

Commit

Permalink
Typescript Groth16 json parsers (keep-starknet-strange#208)
Browse files Browse the repository at this point in the history
Co-authored-by: feltroid Prime <[email protected]>
  • Loading branch information
luiz-lvj and feltroidprime authored Oct 1, 2024
1 parent fa27403 commit cdf4eb5
Show file tree
Hide file tree
Showing 12 changed files with 6,518 additions and 339 deletions.
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
2 changes: 1 addition & 1 deletion .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: |
docker compose up --build --exit-code-from app
git status --porcelain
[[ -z $(git status --porcelain) ]]
[[ -z $(git status --porcelain ) ]]
- name: Upload package file as artifact
uses: actions/upload-artifact@v4
with:
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
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

0 comments on commit cdf4eb5

Please sign in to comment.