fix: replace H160::from_slice().unwrap() with proper error handling #747
Workflow file for this run
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: CI workflow | |
| on: | |
| pull_request: | |
| types: [ opened, synchronize, reopened ] | |
| push: | |
| branches: | |
| - "develop" | |
| - "master" | |
| - "pkg/*" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: full | |
| jobs: | |
| unit-test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, macos-15-intel, windows-latest ] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - if: matrix.os == 'windows-latest' | |
| name: Windows Dependencies | |
| shell: pwsh | |
| run: | | |
| iex "& {$(irm get.scoop.sh)} -RunAsAdmin" | |
| scoop install mingw git | |
| - name: UnitTest | |
| run: | | |
| make test | |
| git diff | |
| integration-test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, macos-15-intel ] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Integration_Test | |
| run: make integration | |
| linters: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, macos-15-intel ] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| components: rustfmt, clippy | |
| - name: Linters | |
| run: | | |
| make fmt | |
| make clippy | |
| git diff --exit-code Cargo.lock | |
| security-audit: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| checks: | |
| - --hide-inclusion-graph --show-stats advisories sources -Wunmaintained | |
| - --hide-inclusion-graph --show-stats bans | |
| - --hide-inclusion-graph --show-stats licenses | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: cargo-deny | |
| uses: EmbarkStudios/cargo-deny-action@v2 | |
| with: | |
| command: check ${{ matrix.checks }} | |
| ci-success: | |
| name: ci | |
| needs: | |
| - unit-test | |
| - integration-test | |
| - linters | |
| - security-audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: CI succeeded | |
| run: exit 0 |