Skip to content

Update actions/checkout action to v4 #190

Update actions/checkout action to v4

Update actions/checkout action to v4 #190

Workflow file for this run

name: Rust
on:
push:
branches:
- main
tags:
- v*
pull_request:
env:
CARGO_INCREMENTAL: 0
jobs:
rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: clippy, rustfmt
- name: cache dependencies
uses: Swatinem/rust-cache@v2.5.1
- name: reviewdog / clippy
uses: sksat/action-clippy@v0.2.1
with:
reporter: ${{ github.event_name == 'pull_request' && 'github-pr-review' || 'github-check' }}
clippy_flags: --all-features
- name: unit test
run: cargo test