chore(deps): bump serde_json from 1.0.143 to 1.0.145 (#43) #164
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 | |
env: | |
CARGO_TERM_COLOR: always | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
workflow_dispatch: null | |
permissions: {} | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4 | |
with: | |
persist-credentials: false | |
- uses: dtolnay/rust-toolchain@4305c38b25d97ef35a8ad1f985ccf2d2242004f2 # stable | |
with: | |
components: clippy, rustfmt | |
- uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2 | |
- name: Check | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: rustfmt | |
run: cargo fmt --all --check | |
check-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4 | |
with: | |
persist-credentials: false | |
- uses: dtolnay/rust-toolchain@4305c38b25d97ef35a8ad1f985ccf2d2242004f2 # stable | |
- uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2 | |
- name: cargo doc | |
env: | |
RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests" | |
run: cargo doc --all-features --no-deps | |
test-versions: | |
needs: check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: [stable, beta] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4 | |
with: | |
persist-credentials: false | |
- uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2 | |
- name: Run tests | |
run: cargo test --all-features --all-targets |