old chore(deps): pin dependencies #56
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- staging | |
- trying | |
pull_request: | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt | |
- run: cargo +nightly fmt --all -- --check | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 | |
- run: cargo clippy --workspace --all-targets --features derive | |
test-min: | |
name: Test Minimal Versions | |
runs-on: ubuntu-latest | |
services: | |
localstack: | |
image: localstack/localstack@sha256:e1017740b2726c6e86e8e917e9a1955281e49854694f90c87b6e527baa1bdbbb | |
ports: | |
- 4566:4566 | |
env: | |
SERVICES: dynamodb | |
EAGER_SERVICE_LOADING: 1 | |
env: | |
RUST_LOG: info | |
RUST_LOG_SPAN_EVENTS: close | |
AWS_DEFAULT_REGION: us-east-1 | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- uses: dtolnay/rust-toolchain@nightly | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 | |
- uses: taiki-e/install-action@nextest | |
- run: cargo nextest run --workspace --no-fail-fast --features derive --run-ignored all -Zminimal-versions | |
- run: cargo test --workspace --doc --no-fail-fast --features derive -Zminimal-versions | |
test-msrv: | |
name: Test MSRV | |
runs-on: ubuntu-latest | |
services: | |
localstack: | |
image: localstack/localstack@sha256:e1017740b2726c6e86e8e917e9a1955281e49854694f90c87b6e527baa1bdbbb | |
ports: | |
- 4566:4566 | |
env: | |
SERVICES: dynamodb | |
EAGER_SERVICE_LOADING: 1 | |
env: | |
RUST_LOG: info | |
RUST_LOG_SPAN_EVENTS: close | |
AWS_DEFAULT_REGION: us-east-1 | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- uses: dtolnay/[email protected] | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 | |
- uses: taiki-e/install-action@nextest | |
- run: cargo nextest run --workspace --no-fail-fast --features derive,once_cell --run-ignored all | |
- run: cargo test --workspace --doc --no-fail-fast --features derive,once_cell | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
services: | |
localstack: | |
image: localstack/localstack@sha256:e1017740b2726c6e86e8e917e9a1955281e49854694f90c87b6e527baa1bdbbb | |
ports: | |
- 4566:4566 | |
env: | |
SERVICES: dynamodb | |
EAGER_SERVICE_LOADING: 1 | |
env: | |
RUST_LOG: info | |
RUST_LOG_SPAN_EVENTS: close | |
AWS_DEFAULT_REGION: us-east-1 | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 | |
- uses: taiki-e/install-action@nextest | |
- run: cargo nextest run --workspace --no-fail-fast --features derive --run-ignored all | |
- run: cargo test --workspace --doc --no-fail-fast --features derive | |
deny: | |
name: Check Constraints | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
checks: | |
- advisories | |
- bans licenses sources | |
continue-on-error: ${{ matrix.checks == 'advisories' }} | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 | |
- run: cargo install --locked cargo-deny | |
- run: cargo deny --all-features check ${{ matrix.checks }} |