Skip to content

Remove wrong debug console.log #264

Remove wrong debug console.log

Remove wrong debug console.log #264

Workflow file for this run

name: Main
on:
# We want to trigger these jobs in every branch.
push:
# But do not trigger them when only `md` files were modified.
paths-ignore:
- '**.md'
# `FORCE_COLOR` is used by `chalk`, which is used internally by `mocha`.
# https://github.com/chalk/chalk#supportscolor
# https://github.com/orgs/community/discussions/26944#discussioncomment-3254075
env:
FORCE_COLOR: 3
jobs:
check-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo "NODE_VERSION=`node --version`" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile
- run: yarn make:4byte
- run: yarn compile
- run: yarn make:help
- run: git --no-pager diff --exit-code README.md
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo "NODE_VERSION=`node --version`" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile
- run: yarn make:4byte
- run: yarn compile
- run: yarn lint
- run: yarn bundle
test:
strategy:
# Runs all node versions using the same `os` in parallel
max-parallel: 3
matrix:
os: [ubuntu-latest, windows-latest]
# https://nodejs.dev/en/about/releases/
node: [16, 18, 20]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ matrix.node }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile
- run: yarn make:4byte
- run: yarn test
# - run: yarn test:smoke
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo "NODE_VERSION=`node --version`" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile
- run: yarn make:4byte
- run: yarn coverage
examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo "NODE_VERSION=`node --version`" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile
- run: yarn make:4byte
- run: yarn compile
- run: examples/Decode-Bytecode-into-Opcodes.mjs
- run: examples/Decompile-a-Contract.mjs
- run: examples/Detect-Functions-Events-ERCs.mjs
- run: examples/Extract-Contract-Metadata.mjs
- run: examples/Simple-Hook.mjs
- run: examples/Use-with-Import.mjs
- run: examples/Use-with-Require.js
bin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo "NODE_VERSION=`node --version`" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile
- run: yarn make:4byte
- run: yarn test
- run: make dis
- run: make sol
- run: make yul