chore: remove schemars
#3281
This file contains hidden or 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: Lints | |
| on: | |
| push: | |
| branches: [develop] | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| workflow_dispatch: | |
| concurrency: | |
| group: lints-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }} | |
| permissions: | |
| contents: read | |
| env: | |
| RUSTFLAGS: -Dwarnings | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: taiki-e/install-action@cargo-hack | |
| - name: Install latest nightly | |
| run: rustup toolchain install nightly --component rustfmt --allow-downgrade | |
| - name: rustfmt | |
| run: make check-fmt | |
| - name: clippy | |
| if: (!github.event.pull_request.draft || contains(github.event.pull_request.body, '[run-ci]')) | |
| run: make clippy | |
| - name: rustdoc | |
| if: (!github.event.pull_request.draft || contains(github.event.pull_request.body, '[run-ci]')) | |
| run: make doc | |
| - name: BCS schema | |
| if: (!github.event.pull_request.draft || contains(github.event.pull_request.body, '[run-ci]')) | |
| run: BCS_SCHEMA=1 cargo check -p iota-sdk-types --features bcs-schema | |
| - run: make is-dirty | |
| cargo-sort: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Install dprint | |
| run: curl -fsSL https://dprint.dev/install.sh | sh && echo "$HOME/.dprint/bin" >> $GITHUB_PATH | |
| - name: Sort, consolidate, and format Cargo.toml dependencies | |
| run: make cargo-sort | |
| - name: Check for uncommitted Cargo.toml changes | |
| run: | | |
| if ! git diff --quiet -- '*.toml'; then | |
| echo "Cargo.toml files not properly sorted, consolidated, or formatted! Please run 'make cargo-sort'." | |
| git diff -- '*.toml' | |
| exit 1 | |
| fi | |
| cargo-deny: | |
| if: (!github.event.pull_request.draft || contains(github.event.pull_request.body, '[run-ci]')) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Install cargo-deny | |
| run: cargo install cargo-deny | |
| - name: cargo deny (bans, licenses, sources, advisories) | |
| run: cargo deny --manifest-path './Cargo.toml' check bans licenses sources advisories --hide-inclusion-graph | |
| check-unused-deps: | |
| name: Check Unused Dependencies (${{ matrix.flags }}) | |
| if: (!github.event.pull_request.draft || contains(github.event.pull_request.body, '[run-ci]')) | |
| strategy: | |
| matrix: | |
| flags: ["--all-features", "--no-default-features"] | |
| fail-fast: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Install nightly cargo-udeps | |
| run: cargo +nightly install cargo-udeps | |
| - name: Run Cargo Udeps | |
| run: cargo +nightly udeps ${{ matrix.flags }} |