8000 Fix formatting error in benches/rustowl_bench_simple.rs · cordx56/rustowl@8ab147b · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix formatting error in benches/rustowl_bench_simple.rs #198

Fix formatting error in benches/rustowl_bench_simple.rs

Fix formatting error in benches/rustowl_bench_simple.rs #198

Workflow file for this run

name: Basic Checks
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
workflow_dispatch:
workflow_call:
env:
CARGO_TERM_COLOR: always
RUSTUP_TOOLCHAIN: 1.87.0
RUSTC_BOOTSTRAP: 1
jobs:
check:
name: Format & Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUSTUP_TOOLCHAIN }}
components: clippy,rustfmt,llvm-tools,rust-src,rustc-dev
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --check
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUSTUP_TOOLCHAIN }}
components: clippy,rustfmt,llvm-tools,rust-src,rustc-dev
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Build release
run: cargo build --release
- name: Install binary
run: cargo install --path .
- name: Test rustowl check
run: rustowl check ./perf-tests/dummy-package
vscode:
name: VS Code Extension Checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: yarn install --frozen-locked
working-directory: ./vscode
- name: Check formatting
run: yarn prettier -c src
working-directory: ./vscode
- name: Lint and type check
run: yarn lint && yarn check-types
working-directory: ./vscode
0