Skip to content

Commit

Permalink
Merge pull request #3 from matter-labs/fvs-add-minimal-ci
Browse files Browse the repository at this point in the history
chore: adds minimal ci
  • Loading branch information
joonazan authored Apr 24, 2024
2 parents 194c3c8 + 7f2b5af commit 06d2b61
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
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

0 comments on commit 06d2b61

Please sign in to comment.