Skip to content

Fix backend

Fix backend #39

Workflow file for this run

name: Crypto
on:
push:
branches:
- "main"
pull_request:
branches:
- main
paths:
- 'near/**'
env:
RUST_VERSION_NIGHTLY: nightly-2024-03-24
CARGO_TERM_COLOR: always
defaults:
run:
working-directory: ./near
jobs:
lints:
name: crypto
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ env.RUST_VERSION_NIGHTLY }}
components: clippy
- name: Set default Rust toolchain
run: rustup default ${{ env.RUST_VERSION_NIGHTLY }}
- name: Run clippy
run: cargo clippy --all-targets --all-features
- name: Install other dependencies
run: sudo apt-get install moreutils dos2unix
- name: Check encoding
run: |
find . -name '*.rs' -exec isutf8 {} +
- name: Check line endings
run: bash ../.github/workflows/scripts/check_line_endings.sh