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

feat: bump to latest node 18 and allow unlimited contract size on rootchain #212

Merged
merged 21 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from 10 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
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-syntax-import-assertions"]
}
23 changes: 23 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
extends: 'standard',
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2022, // or latest
sourceType: 'module',
requireConfigFile: false,
babelOptions: {
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-syntax-import-assertions']
}
},
rules: {
'space-before-function-paren': [
'error',
{
anonymous: 'always',
named: 'never',
asyncArrow: 'always'
}
]
}
}
13 changes: 0 additions & 13 deletions .eslintrc.js

This file was deleted.

33 changes: 18 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,21 @@ concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
NODE_VERSION: '18.19.0'

jobs:
lint:
name: Prettier and Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: matic-cli
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.20.2'
node-version: ${{ env.NODE_VERSION }}

- name: Install npm dependencies
working-directory: matic-cli
Expand All @@ -49,7 +52,7 @@ jobs:
os: [ubuntu-20.04] # list of os: https://github.com/actions/virtual-environments
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: matic-cli

Expand Down Expand Up @@ -88,44 +91,44 @@ jobs:
chmod 700 matic-cli-ci-key.pem

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.20.2'
node-version: ${{ env.NODE_VERSION }}

- name: Install npm dependencies
working-directory: matic-cli
run: npm install --prefer-offline --no-audit --progress=false

- name: Init devnet
working-directory: matic-cli
run: ./bin/express-cli --init aws
run: ./bin/express-cli.js --init aws

- name: Start devnet
working-directory: matic-cli/deployments/devnet-1
run: |
ls -la
../../bin/express-cli --start
../../bin/express-cli.js --start

- name: Run stateSynced and checkpoint tests
working-directory: matic-cli/deployments/devnet-1
run: |
../../bin/express-cli --send-state-sync
timeout 20m ../../bin/express-cli --monitor exit
../../bin/express-cli.js --send-state-sync
timeout 20m ../../bin/express-cli.js --monitor exit

- name: Run smart contracts events tests
working-directory: matic-cli/deployments/devnet-1
run: |
timeout 5m ../../bin/express-cli --send-staked-event 1
timeout 5m ../../bin/express-cli --send-stakeupdate-event 1
timeout 5m ../../bin/express-cli --send-topupfee-event 1
timeout 10m ../../bin/express-cli --send-unstakeinit-event 1
timeout 5m ../../bin/express-cli.js --send-staked-event 1
timeout 5m ../../bin/express-cli.js --send-stakeupdate-event 1
timeout 5m ../../bin/express-cli.js --send-topupfee-event 1
timeout 10m ../../bin/express-cli.js --send-unstakeinit-event 1

- name: Destroy devnet
if: always()
working-directory: matic-cli/deployments/devnet-1
run: |
echo "Running --destroy"
../../bin/express-cli --destroy
../../bin/express-cli.js --destroy

- name: Delete aws key pair
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ name: NPM Package Release
on:
release:
types: [created]

env:
NODE_VERSION: '18.19.0'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '16.20.2'
node-version: ${{ env.NODE_VERSION }}
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.20.2
v18.19.0
Loading
Loading