Skip to content

Bump actions/checkout from 3 to 4 (#44) #162

Bump actions/checkout from 3 to 4 (#44)

Bump actions/checkout from 3 to 4 (#44) #162

Workflow file for this run

name: Rust CI
on:
pull_request:
push:
branches:
- main
defaults:
run:
working-directory: ./native/comrak_nif/
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: rust-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo fmt -- --check
- run: |
touch src/lib.rs
cargo clippy --all-targets --all-features -- -D warnings