Skip to content

Commit

Permalink
add tests and update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MedovTimur committed Jul 31, 2024
1 parent 92be053 commit d3783a1
Show file tree
Hide file tree
Showing 6 changed files with 448 additions and 568 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,33 @@ jobs:

- name: Run Clippy
run: cargo clippy -r --manifest-path vft-service/Cargo.toml -- -D warnings

vnft-service:
name: VnftService
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true

- name: Install Clippy
run: rustup component add clippy

- name: Install Rustfmt
run: rustup component add rustfmt

- name: Check formatting
run: cargo fmt --all --manifest-path vnft-service/Cargo.toml -- --check

- name: Run Clippy
run: cargo clippy -r --manifest-path vnft-service/Cargo.toml -- -D warnings

extend-vft:
needs: [vft-service]
Expand Down
1 change: 1 addition & 0 deletions vnft-service/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vnft-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ parity-scale-codec = { version = "3.6", default-features = false }
scale-info = { version = "2.10", default-features = false }


[dev-dependencies]
env_logger = "*"
Loading

0 comments on commit d3783a1

Please sign in to comment.