Skip to content

Feature/v2 2

Feature/v2 2 #232

on: [push, pull_request]

Check failure on line 1 in .github/workflows/cont_integration.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cont_integration.yml

Invalid workflow file

(Line: 38, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory
name: CI
jobs:
build-test:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.90.0 # current
- 1.85.0 # MSRV
steps:
- name: checkout
uses: actions/checkout@v4
- name: Generate cache key
run: echo "${{ matrix.rust }} ${{ matrix.features }}" | tee .cache_key
- name: cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('.cache_key') }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Set default toolchain
run: rustup default ${{ matrix.rust }}
- name: Set profile
run: rustup set profile minimal
- name: Add clippy
run: rustup component add clippy
- name: Update toolchain
run: rustup update
- name: Update Cargo.lock
run: cargo update
- name: Pin dependencies for MSRV
- name: Build
run: cargo build
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Test
run: cargo test
fmt:
name: Rust fmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set default toolchain
run: rustup default nightly
- name: Set profile
run: rustup set profile minimal
- name: Add rustfmt
run: rustup component add rustfmt
- name: Update toolchain
run: rustup update
- name: Check fmt
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check