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

chore: adds minimal ci #3

Merged
merged 2 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
push:
branches:
- master

pull_request:
merge_group:

env:
CARGO_TERM_COLOR: always

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build_and_test:
runs-on: [matterlabs-ci-runner]

steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Rust Cache
uses: Swatinem/rust-cache@v2

- name: Build project
run: |
cargo build

- name: Run clippy
run: |
cargo clippy -- -D warnings

- name: Check formatting
run: |
cargo fmt --check

- name: Run Tests
run: |
cargo test --all
1 change: 1 addition & 0 deletions src/callframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ struct NearCallFrame {
}

impl Callframe {
#[allow(clippy::too_many_arguments)]
pub(crate) fn new(
address: H160,
code_address: H160,
Expand Down
1 change: 1 addition & 0 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ impl State {
.sum::<u32>()
}

#[allow(clippy::too_many_arguments)]
pub(crate) fn push_frame<const CALLING_MODE: u8>(
&mut self,
instruction_pointer: *const Instruction,
Expand Down
Loading