Skip to content

feat(proto-build): move consts to a file #157

feat(proto-build): move consts to a file

feat(proto-build): move consts to a file #157

Workflow file for this run

on: [push, pull_request]
name: Check
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.70.0
- stable
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
target: wasm32-unknown-unknown
override: true
profile: minimal
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Run unit tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all --locked
env:
RUST_BACKTRACE: 1
- name: Compile WASM contract
uses: actions-rs/cargo@v1
with:
command: build
args: --release --lib --target wasm32-unknown-unknown --package increment
env:
RUSTFLAGS: "-C link-arg=-s"
lints:
name: Lints
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.70.0
- stable
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
components: rustfmt, clippy
- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings -A clippy::derive_partial_eq_without_eq