Skip to content

chore(deps): bump rand from 0.8.5 to 0.8.6 #3577

chore(deps): bump rand from 0.8.5 to 0.8.6

chore(deps): bump rand from 0.8.5 to 0.8.6 #3577

Workflow file for this run

name: ci
permissions:
contents: read
packages: read
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
paths-ignore:
- '**.md'
- 'docs/**'
- 'LICENSE'
- '.gitignore'
- '.github/**.md'
env:
CARGO_TERM_COLOR: always
GITHUB_ACTOR: pop-cli
CARGO_INCREMENTAL: 1
RUST_BACKTRACE: 1
# It is important to always use the same flags. Otherwise, the cache will not work.
RUSTFLAGS: "-Dwarnings"
RUSTDOCFLAGS: "-Dwarnings"
concurrency:
# Cancel any in-progress jobs for the same pull request or branch
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint:
uses: ./.github/workflows/lint.yml
setup:
runs-on: ubuntu-latest
outputs:
image: ${{ steps.out.outputs.image }}
rust_version: ${{ steps.out.outputs.rust_version }}
steps:
- uses: actions/checkout@v4
- name: Set environment variables
id: out
env:
HASH: ${{ hashFiles('Dockerfile.ci') }}
run: |
set -xeuo pipefail
RUST_VERSION=$(yq -r '.toolchain.channel' rust-toolchain.toml)
echo "rust_version=$RUST_VERSION" >> "$GITHUB_OUTPUT"
echo "image=ghcr.io/${GITHUB_REPOSITORY,,}:${RUST_VERSION}-${HASH}" >> "$GITHUB_OUTPUT"
prepare-ci-image:
needs:
- setup
uses: ./.github/workflows/docker-ci.yml
permissions:
contents: read
packages: write
with:
docker_image: ${{ needs.setup.outputs.image }}
rust_version: ${{ needs.setup.outputs.rust_version }}
build:
needs:
- setup
- lint
- prepare-ci-image
runs-on: ubuntu-latest
container:
image: ${{ needs.setup.outputs.image }}
steps:
- uses: actions/checkout@v4
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
cache-all-crates: true
shared-key: pop-cache
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Check no default features
run: cargo check --locked --no-default-features
- name: Check contract feature
run: cargo check --locked --no-default-features --features contract
- name: Check chain feature
run: cargo check --locked --no-default-features --features chain
- name: Check default features
run: cargo check --locked
clippy:
needs:
- build
- setup
runs-on: ubuntu-latest
container:
image: ${{ needs.setup.outputs.image }}
permissions:
checks: write
packages: read
steps:
- uses: actions/checkout@v4
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
save-if: false
shared-key: pop-cache
- name: Annotate with Clippy warnings
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --no-default-features --features telemetry,contract,chain --all-targets -- -D warnings
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/build-push-action@v5
with:
context: .
docs:
needs:
- setup
- build
runs-on: ubuntu-latest
container:
image: ${{ needs.setup.outputs.image }}
permissions:
checks: write
packages: read
env:
# We cannot propagate the "mising_docs" flag, as otherwise other tests fail.
RUSTFLAGS: "-Dwarnings -Dmissing_docs"
steps:
- uses: actions/checkout@v4
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
shared-key: pop-cache-docs
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Check all features
run: cargo doc --locked --no-default-features --features telemetry,contract,chain --no-deps
documentation-tests:
needs:
- setup
- build
runs-on: ubuntu-latest
container:
image: ${{ needs.setup.outputs.image }}
volumes:
- /:/host
steps:
- name: Free disk space
run: |
rm -rf /host/usr/share/dotnet
rm -rf /host/usr/local/lib/android
rm -rf /host/opt/ghc
rm -rf /host/opt/hostedtoolcache/CodeQL
df -h
- uses: actions/checkout@v4
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
save-if: false
shared-key: pop-cache
- name: Run doc tests
run: cargo test --locked --no-default-features --features telemetry,contract,chain --doc