Skip to content

Bump actions/cache from 3.0.11 to 4.0.0 #100

Bump actions/cache from 3.0.11 to 4.0.0

Bump actions/cache from 3.0.11 to 4.0.0 #100

Workflow file for this run

name: fmt
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
fmt:
strategy:
matrix:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: contract
steps:
- name: Install Rust toolchain
uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- name: Cache Dependencies & Build Outputs
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Run spellcheck
shell: bash
run: cargo fmt --verbose -- --check