Skip to content

Fix clippy issues in rust 1.77 #126

Fix clippy issues in rust 1.77

Fix clippy issues in rust 1.77 #126

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches-ignore: [stable-docs, gh-pages]
pull_request:
branches-ignore: [stable-docs, gh-pages]
env:
CARGO_TERM_COLOR: always
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Install development tools
uses: taiki-e/install-action@v2
with:
tool: just
- name: Check format
run: just format --check
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Install development tools
uses: taiki-e/install-action@v2
with:
tool: just,nextest
- name: Run build
run: just build
- name: Run clippy
run: just clippy
- name: Run tests
run: just test
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install development tools
uses: taiki-e/install-action@v2
with:
tool: just,cargo-tarpaulin
- name: Run coverage
run: just coverage xml
- name: Upload coverage
if: ${{ github.event_name == 'push' }}
uses: codecov/codecov-action@v4
with:
file: ./cobertura.xml
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true