Pin dependencies
This commit is contained in:
parent
cda79d7fca
commit
1b1efffe7e
2
.github/workflows/publish-crate.yml
vendored
2
.github/workflows/publish-crate.yml
vendored
@ -14,6 +14,6 @@ jobs:
|
||||
PLAN: ${{ inputs.plan }}
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- run: cargo publish
|
||||
|
44
.github/workflows/test.yml
vendored
44
.github/workflows/test.yml
vendored
@ -12,12 +12,12 @@ jobs:
|
||||
outputs:
|
||||
rustc_cache_key: ${{ steps.setup_rust.outputs.cachekey }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
id: setup_rust
|
||||
with:
|
||||
components: "rustfmt, clippy"
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
@ -29,7 +29,7 @@ jobs:
|
||||
restore-keys: |
|
||||
cargo-base-${{ env.RUSTC_CACHEKEY }}
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.3
|
||||
uses: mozilla-actions/sccache-action@8417cffc2ec64127ad83077aceaa8631f7cdc83e # v0.0.3
|
||||
- run: cargo build --locked --all-targets
|
||||
|
||||
lint:
|
||||
@ -37,8 +37,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
@ -52,7 +52,7 @@ jobs:
|
||||
cargo-base-${{ env.RUSTC_CACHEKEY }}
|
||||
fail-on-cache-miss: true
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.3
|
||||
uses: mozilla-actions/sccache-action@8417cffc2ec64127ad83077aceaa8631f7cdc83e # v0.0.3
|
||||
|
||||
- run: cargo fmt --all -- --check
|
||||
- run: cargo check
|
||||
@ -67,8 +67,8 @@ jobs:
|
||||
# These hooks are expensive and already run as dedicated jobs above
|
||||
SKIP: "tests,clippy"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
@ -82,12 +82,12 @@ jobs:
|
||||
cargo-base-${{ env.RUSTC_CACHEKEY }}
|
||||
fail-on-cache-miss: true
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.3
|
||||
uses: mozilla-actions/sccache-action@8417cffc2ec64127ad83077aceaa8631f7cdc83e # v0.0.3
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
|
||||
- name: set PYVERSION
|
||||
run: echo "PYVERSION=$(python --version | tr ' ' '-')" >> $GITHUB_ENV
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
with:
|
||||
path: ~/.cache/pre-commit
|
||||
# Changes to pre-commit-config.yaml may require the installation of
|
||||
@ -104,8 +104,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
@ -119,7 +119,7 @@ jobs:
|
||||
cargo-base-${{ env.RUSTC_CACHEKEY }}
|
||||
fail-on-cache-miss: true
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.3
|
||||
uses: mozilla-actions/sccache-action@8417cffc2ec64127ad83077aceaa8631f7cdc83e # v0.0.3
|
||||
|
||||
- run: cargo test
|
||||
|
||||
@ -129,10 +129,10 @@ jobs:
|
||||
needs: build
|
||||
steps:
|
||||
- run: git config --system core.autocrlf false && git config --system core.eol lf
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
id: setup_rust
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
@ -146,7 +146,7 @@ jobs:
|
||||
cargo-base-${{ env.RUSTC_CACHEKEY }}
|
||||
fail-on-cache-miss: true
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.3
|
||||
uses: mozilla-actions/sccache-action@8417cffc2ec64127ad83077aceaa8631f7cdc83e # v0.0.3
|
||||
|
||||
- run: cargo test
|
||||
|
||||
@ -155,8 +155,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
@ -170,15 +170,15 @@ jobs:
|
||||
cargo-base-${{ env.RUSTC_CACHEKEY }}
|
||||
fail-on-cache-miss: true
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.3
|
||||
uses: mozilla-actions/sccache-action@8417cffc2ec64127ad83077aceaa8631f7cdc83e # v0.0.3
|
||||
|
||||
- uses: actions-rs/tarpaulin@v0.1
|
||||
- uses: actions-rs/tarpaulin@044a1e5bdace8dd2f727b1af63c1d9a1d3572068 # v0.1
|
||||
with:
|
||||
# Constrained by https://github.com/actions-rs/tarpaulin/pull/23
|
||||
version: "0.22.0"
|
||||
args: "--ignore-tests"
|
||||
out-type: "Html"
|
||||
- uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
|
||||
with:
|
||||
name: tarpaulin-report
|
||||
path: tarpaulin-report.html
|
||||
|
Loading…
Reference in New Issue
Block a user