From c0160e564e6ccd7f661a28c3bb9f89f7e2aa026b Mon Sep 17 00:00:00 2001 From: 0xtekgrinder <72015889+0xtekgrinder@users.noreply.github.com> Date: Tue, 12 Mar 2024 16:09:48 -0700 Subject: [PATCH 1/5] chore: add ci for both core and sdk --- .github/workflows/scanner-core-ci.yml | 26 +++++++++++++++ .github/workflows/scanner-sdk-ci.yml | 47 +++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 .github/workflows/scanner-core-ci.yml create mode 100644 .github/workflows/scanner-sdk-ci.yml diff --git a/.github/workflows/scanner-core-ci.yml b/.github/workflows/scanner-core-ci.yml new file mode 100644 index 0000000..db6ee35 --- /dev/null +++ b/.github/workflows/scanner-core-ci.yml @@ -0,0 +1,26 @@ +name: Scanner Core CI + +on: + push: + branches: + - main + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + name: Rust project - latest + runs-on: ubuntu-latest + strategy: + matrix: + toolchain: + - stable + - beta + - nightly + steps: + - uses: actions/checkout@v3 + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: cargo build --verbose + working-directory: ./packages/scanner-core diff --git a/.github/workflows/scanner-sdk-ci.yml b/.github/workflows/scanner-sdk-ci.yml new file mode 100644 index 0000000..854f012 --- /dev/null +++ b/.github/workflows/scanner-sdk-ci.yml @@ -0,0 +1,47 @@ +name: Scanner Core CI + +on: + push: + branches: + - main + pull_request: + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: ['16.x', '18.x', '20.x'] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + working-directory: ./packages/scanner-sdk + - run: npm run build + working-directory: ./packages/scanner-sdk + + + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: ['16.x', '18.x', '20.x'] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + working-directory: ./packages/scanner-sdk + - run: npm run test + working-directory: ./packages/scanner-sdk \ No newline at end of file From 7509756fa3353491f37c967bdc3f7c534e5d0ecc Mon Sep 17 00:00:00 2001 From: 0xtekgrinder <72015889+0xtekgrinder@users.noreply.github.com> Date: Tue, 12 Mar 2024 16:14:36 -0700 Subject: [PATCH 2/5] chroe: rename scanner sdk ci --- .github/workflows/scanner-sdk-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scanner-sdk-ci.yml b/.github/workflows/scanner-sdk-ci.yml index 854f012..65792cf 100644 --- a/.github/workflows/scanner-sdk-ci.yml +++ b/.github/workflows/scanner-sdk-ci.yml @@ -1,4 +1,4 @@ -name: Scanner Core CI +name: Scanner Sdk CI on: push: From fbb6c04617a0615f4c8fd7dbc23061d16eeb7089 Mon Sep 17 00:00:00 2001 From: 0xtekgrinder <72015889+0xtekgrinder@users.noreply.github.com> Date: Tue, 12 Mar 2024 16:15:00 -0700 Subject: [PATCH 3/5] chore: ci runs on pull requests --- .github/workflows/scanner-core-ci.yml | 2 +- .github/workflows/scanner-sdk-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scanner-core-ci.yml b/.github/workflows/scanner-core-ci.yml index db6ee35..596de28 100644 --- a/.github/workflows/scanner-core-ci.yml +++ b/.github/workflows/scanner-core-ci.yml @@ -4,7 +4,7 @@ on: push: branches: - main - pull_request: + pull_request: env: CARGO_TERM_COLOR: always diff --git a/.github/workflows/scanner-sdk-ci.yml b/.github/workflows/scanner-sdk-ci.yml index 65792cf..6680fae 100644 --- a/.github/workflows/scanner-sdk-ci.yml +++ b/.github/workflows/scanner-sdk-ci.yml @@ -4,7 +4,7 @@ on: push: branches: - main - pull_request: + pull_request: jobs: build: From bc28a06d1161d4d34730711a585f941e19d4eaa0 Mon Sep 17 00:00:00 2001 From: 0xtekgrinder <72015889+0xtekgrinder@users.noreply.github.com> Date: Tue, 12 Mar 2024 16:52:55 -0700 Subject: [PATCH 4/5] chore: updzate checkout to v4 --- .github/workflows/scanner-core-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scanner-core-ci.yml b/.github/workflows/scanner-core-ci.yml index 596de28..5fcd8cf 100644 --- a/.github/workflows/scanner-core-ci.yml +++ b/.github/workflows/scanner-core-ci.yml @@ -20,7 +20,7 @@ jobs: - beta - nightly steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - run: cargo build --verbose working-directory: ./packages/scanner-core From 2c49f38339aad6683e697de3001b4ad1458aede1 Mon Sep 17 00:00:00 2001 From: 0xtekgrinder <72015889+0xtekgrinder@users.noreply.github.com> Date: Tue, 12 Mar 2024 16:54:35 -0700 Subject: [PATCH 5/5] doc: add introduction inside main README --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cee63b9..87f0523 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,11 @@ Cover by [DALL-E](https://openai.com/dall-e-3/). ## Introduction -Coming soon. +This repository is a scanner of massa smart contracts to extract some valuable informations from bytecode. + +It contains two packages: +- the [scanner-core](./packages/scanner-core/README.md) +- the [scanner-sdk](./packages/scanner-sdk/README.md) ## Contributing