Bump serde_json from 1.0.102 to 1.0.103 (#76) #150
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: Checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
CACHE_VERSION: 0 | |
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | |
CARGO_TERM_COLOR: always | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
RUST_BACKTRACE: full | |
jobs: | |
cargo-checks: | |
name: Task cargo ${{ matrix.action }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
action: [clippy, fmt, test] | |
steps: | |
- name: Setup build environment | |
run: rustup toolchain install nightly --profile minimal | |
- name: Fetch latest code | |
uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: ${{ env.CACHE_VERSION }} | |
- name: Cargo clippy | |
if: matrix.action == 'clippy' | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --workspace --all-features --all-targets --locked | |
- name: Cargo fmt | |
if: matrix.action == 'fmt' | |
run: cargo fmt --all -- --check | |
- name: Cargo test | |
if: matrix.action == 'test' | |
run: cargo test --profile ci-dev --workspace --all-features --all-targets --locked | |
- name: Fast fail | |
uses: vishnudxb/cancel-workflow@v1.2 | |
if: failure() | |
with: | |
repo: hack-ink/array-bytes | |
workflow_id: ${{ github.run_id }} | |
access_token: ${{ github.token }} |