Skip to content

Bump actions/cache from 3 to 4 #346

Bump actions/cache from 3 to 4

Bump actions/cache from 3 to 4 #346

Workflow file for this run

name: Pre-build Checks
on:
push:
branches: [master, exchange_rate_override]
pull_request:
branches: [master, exchange_rate_override]
env:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN: "1.59.0"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust nightly
uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt, clippy
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Run cargo fmt
run: cargo fmt -- --check
- name: Run clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --all-targets -- --deny=warnings
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust nightly
uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt, clippy
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- run: cargo check