Skip to content

clippy fix attemp

clippy fix attemp #3

Workflow file for this run

name: Build Package CI
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, opened]
workflow_dispatch:
inputs:
beta_release:
description: Create beta release
type: boolean
default: false
required: false
env:
NODE_VERSION: "22"
concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && 'main' || github.head_ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
optimize_ci:
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.check_skip.outputs.skip }}
steps:
- uses: withgraphite/graphite-ci-action@main
id: check_skip
with:
graphite_token: ${{ secrets.GRAPHITE_TOKEN }}
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- name: Check for errors
uses: actions-rs/cargo@v1
with:
command: check
args: --locked --tests
env:
RUST_BACKTRACE: 1
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --lib --locked --tests
env:
RUST_BACKTRACE: 1
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: cargo build
run: cargo build --workspace --verbose
- name: cargo test
run: cargo llvm-cov --all-features --workspace --lcov --output-path target/lcov.info
- uses: qltysh/qlty-action/coverage@main
with:
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
files: target/lcov.info
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: clippy
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --profile=test --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt continue-on-error: true

Check failure on line 111 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 111
- name: Setup sonarqube
uses: warchant/setup-sonar-scanner@v3
- name: Sonar Scan
shell: bash
run: |
sonar-scanner -Dcommunity.rust.clippy.reportPaths=clippy_report.json -Dsonar.login=${{ secrets.SONAR_TOKEN }}