Update Swatinem/rust-cache action to v2.7.3 #70
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: Review | |
on: | |
pull_request: | |
paths: | |
- 'src/**' | |
- 'Cargo.toml' | |
- 'Cargo.lock' | |
- '.github/workflows/review.yml' | |
env: | |
CARGO_INCREMENTAL: 0 | |
jobs: | |
rust: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.1 | |
- uses: actions-rs/toolchain@v1.0.7 | |
with: | |
toolchain: stable | |
components: clippy | |
override: true | |
- name: cache dependencies | |
uses: Swatinem/rust-cache@v2.7.3 | |
- name: Set environment | |
run: | | |
echo RUSTFLAGS='--cfg reqwest_unstable' >> "$GITHUB_ENV" | |
- name: clippy check | |
uses: actions-rs/clippy-check@v1.0.7 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all-features | |
- name: compile for unit test | |
uses: actions-rs/cargo@v1.0.3 | |
with: | |
command: test | |
args: --no-run --locked | |
- name: unit test | |
uses: actions-rs/cargo@v1.0.3 | |
with: | |
command: test |