Skip to content

Upstream merge to iota v1.17.2 #251

Upstream merge to iota v1.17.2

Upstream merge to iota v1.17.2 #251

Workflow file for this run

name: Format
on:
push:
branches:
- main
pull_request:
branches:
- main
- "feat/**"
paths:
- ".github/workflows/format.yml"
- "**.rs"
- "**.toml"
- "**.ts"
- "**.js"
- "**.json"
jobs:
format:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
# we use nightly to get access to advanced format capabilities
- name: Setup Rust
uses: "./.github/actions/rust/rust-setup"
with:
toolchain: nightly
os: ${{ runner.os }}
job: ${{ github.job }}
components: rustfmt
- name: Install cargo-license-template
run: cargo install cargo-license-template
- name: Install dprint
run: npm install -g dprint
- name: core fmt check
run: cargo +nightly fmt --all -- --check
- name: wasm fmt check iota_interaction_ts
run: cargo +nightly fmt --manifest-path ./bindings/wasm/iota_interaction_ts/Cargo.toml --all -- --check
- name: Cargo.toml fmt check
run: dprint check
- name: cargo-license-template check
run: cargo +nightly license-template --template .license_template --ignore .license_template_ignore --verbose