Skip to content

Commit

Permalink
ci: remove digests from steps, due high maintenance effort
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsan committed Feb 17, 2024
1 parent e221fc6 commit edc4b5c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 24 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
# Ensure that the latest version of Cargo is installed
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2
- uses: rustsec/audit-check@dd51754d4e59da7395a4cd9b593f0ff2d61a9b95 # v1.4.1
- uses: Swatinem/rust-cache@v2

- uses: rustsec/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -36,9 +37,9 @@ jobs:
if: ${{ github.repository_owner == 'pace-rs' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4

- uses: EmbarkStudios/cargo-deny-action@2fad0807be2b6f4402fd9dd4225aa4e91b9ad879 # v1
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check bans licenses sources

Expand Down
29 changes: 16 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ jobs:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: rustfmt
Expand All @@ -36,13 +37,15 @@ jobs:
# matrix:
# feature: [default]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4 # v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: clippy
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2

- uses: Swatinem/rust-cache@v2
- name: Run clippy
# run: cargo clippy --all-targets --features ${{ matrix.feature }} -- -D warnings
run: cargo clippy --all-targets -- -D warnings
Expand All @@ -59,22 +62,22 @@ jobs:
- os: ubuntu-latest
- os: windows-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4 # v4
if: github.event_name != 'pull_request'
with:
fetch-depth: 0

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4 # v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2
- uses: Swatinem/rust-cache@v2
- name: Run Cargo Test
# run: cargo test -r --all-targets --features ${{ matrix.feature }} --workspace
run: cargo test -r --all-targets --workspace
Expand All @@ -90,22 +93,22 @@ jobs:
- os: ubuntu-latest
- os: windows-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4 # v4
if: github.event_name != 'pull_request'
with:
fetch-depth: 0

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4 # v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2
- uses: Swatinem/rust-cache@v2
- name: Run Cargo Doc
run: cargo doc --no-deps --all-features --workspace --examples

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4

- uses: dprint/check@2f1cf31537886c3bfb05591c031f7744e48ba8a1 # v2.2
- uses: dprint/[email protected]

result:
name: Result (Style)
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/msrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
matrix:
crate: [pace-rs, pace_core, pace_cli]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4

- name: Install cargo-hack
uses: taiki-e/install-action@3ed9916b5427bc0679b294607ea47d1d8007b53f # v2
uses: taiki-e/install-action@v2
with:
tool: cargo-hack

Expand Down

0 comments on commit edc4b5c

Please sign in to comment.