Skip to content

Commit

Permalink
Merge pull request #215 from 0xPolygonHermez/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
krlosMata committed Dec 22, 2022
2 parents 0180fff + 73eecb7 commit b27579b
Show file tree
Hide file tree
Showing 51 changed files with 8,254 additions and 4,859 deletions.
34 changes: 34 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports = {
plugins: [
'mocha',
],
env: {
node: true,
mocha: true,
},
extends: 'airbnb-base',
rules: {
indent: ['error', 4],
'mocha/no-exclusive-tests': 'error',
'max-len': ['error', {
code: 140, comments: 200, ignoreStrings: true, ignoreTemplateLiterals: true,
}],
'no-unused-vars': [2, { varsIgnorePattern: 'export^' }],
'no-return-assign': [0],
'no-underscore-dangle': [0],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'func-names': [0],
'class-methods-use-this': [0],
'no-bitwise': [0],
'no-param-reassign': 'off',
'no-console': [2, { allow: ['warn', 'error'] }],
'import/prefer-default-export': [0],
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'multiline-comment-style': 'error',
'no-await-in-loop': 'off',
'newline-before-return': 'error',
},
parserOptions: {
ecmaVersion: 2020,
},
};
48 changes: 13 additions & 35 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,28 @@
name: Test executor inputs

on:
push:
branches: [main]
workflow_dispatch:
pull_request:
branches: [main, develop]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
runs-on: [self-hosted, linux, X64, hc]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: setup zkevm-rom N = 23
run: |
npm i
npm run build -- -s 23
mkdir -p zkevm-rom/build
cp build/rom.json zkevm-rom/build
- name: Clone zkevm-testvectors
uses: GuillaumeFalourd/clone-github-repo-action@v2
with:
owner: '0xPolygonHermez'
repository: 'zkevm-testvectors'
- name: Clone zkevm-proverjs
uses: GuillaumeFalourd/clone-github-repo-action@v2
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
owner: '0xPolygonHermez'
repository: 'zkevm-proverjs'
- name: setup zkevm-testvectors
node-version: 16
- name: setup zkevm-rom
run: |
cd zkevm-testvectors
git checkout $BRANCH_NAME
- name: setup zkevm-proverjs
run: |
cd zkevm-proverjs
git checkout $BRANCH_NAME
npm i
npm run build
- name: Generate tests
run: |
npm run test:gen
- name: Run tests
run: |
cd zkevm-proverjs
npm run test:gen-parallel
npm run test:run-parallel
sh tools/run-test/checker.sh
export NUM_CPUS=31
npm run test:start
sh tools/checker.sh
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ stats.html

# test outputs
build

# testvectors files
tools/parallel-tests
60 changes: 0 additions & 60 deletions config/build-rom.js

This file was deleted.

Loading

0 comments on commit b27579b

Please sign in to comment.