Skip to content

Bump taiki-e/install-action from 2.82.8 to 2.82.10 #162

Bump taiki-e/install-action from 2.82.8 to 2.82.10

Bump taiki-e/install-action from 2.82.8 to 2.82.10 #162

Workflow file for this run

name: Checks
env:
CACHE_VERSION: 0
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
on:
push:
branches:
- main
pull_request:
branches:
- main
merge_group:
permissions:
contents: read
jobs:
cargo-checks:
name: Task cargo ${{ matrix.action }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
action: [clippy, fmt, nextest, vstyle]
steps:
- name: Fetch latest code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Setup build environment
if: matrix.action != 'fmt'
run: rustup show
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
if: matrix.action != 'fmt'
with:
prefix-key: ${{ env.CACHE_VERSION }}
key: ${{ matrix.action }}
- name: Install cargo-make
uses: taiki-e/install-action@50414676f9f5d50a65992c6dd2ed02641263226c
with:
tool: cargo-make
- name: Install taplo
if: matrix.action == 'fmt'
uses: taiki-e/install-action@50414676f9f5d50a65992c6dd2ed02641263226c
with:
tool: taplo
- name: Cargo clippy
if: matrix.action == 'clippy'
run: cargo make lint-rust
- name: Cargo fmt
if: matrix.action == 'fmt'
run: |
rustup toolchain install nightly
rustup component add rustfmt --toolchain nightly
cargo make fmt-check
- name: Install cargo-nextest
if: matrix.action == 'nextest'
uses: taiki-e/install-action@50414676f9f5d50a65992c6dd2ed02641263226c
with:
tool: nextest
- name: Cargo nextest
if: matrix.action == 'nextest'
run: cargo make test-rust
- name: Install cargo-vstyle
if: matrix.action == 'vstyle'
run: cargo install --git https://github.com/hack-ink/vibe-style --rev f509613696c60fbc5e444072469024888d91d88b --locked
- name: Cargo vstyle
if: matrix.action == 'vstyle'
run: cargo make lint-vstyle-rust