feat: rework view methods for getting deployment info #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
jobs: | |
fmt: | |
name: Formatting | |
runs-on: github-hosted-heavy-runner | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Run rustfmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
name: Clippy | |
runs-on: github-hosted-heavy-runner | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Run clippy | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all-targets -- -D warnings | |
test: | |
name: Tests | |
runs-on: github-hosted-heavy-runner | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Build Smart Contract | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --target wasm32-unknown-unknown | |
- name: Run tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all-targets |