Skip to content

chore: Force install dylint in CI #30

chore: Force install dylint in CI

chore: Force install dylint in CI #30

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache cargo registry, git, and target dirs
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
tests/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install nightly + rustfmt
run: rustup update nightly && rustup default nightly && rustup component add rustfmt clippy
- name: Install dylint
uses: baptiste0928/cargo-install@v3
with:
crate: dylint
version: 5.0.0
- name: Install dylint-link
uses: baptiste0928/cargo-install@v3
with:
crate: dylint-link
version: 5.0.0
- name: Format
run: cargo fmt --check
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose
- name: Clippy
run: cargo clippy --all-targets -- -Dwarnings