Fix formatting error in benches/rustowl_bench_simple.rs #198
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |