Skip to content

Commit

Permalink
merge: PR #6 from chore/ci -> main
Browse files Browse the repository at this point in the history
chore: add ci for both core and sdk
  • Loading branch information
0xtekgrinder authored Mar 12, 2024
2 parents 0b6c1f6 + 2c49f38 commit e5e1b4e
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/scanner-core-ci.yml
Original file line number Diff line number Diff line change
@@ -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@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
working-directory: ./packages/scanner-core
47 changes: 47 additions & 0 deletions .github/workflows/scanner-sdk-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Scanner Sdk 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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e5e1b4e

Please sign in to comment.