Skip to content

Bump cachix/install-nix-action from 22 to 25 #344

Bump cachix/install-nix-action from 22 to 25

Bump cachix/install-nix-action from 22 to 25 #344

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