Update arkedge/workflows-c2a action to v4 - autoclosed #189
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
pull_request: | |
env: | |
CARGO_INCREMENTAL: 0 | |
jobs: | |
rust: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 |