forked from lance-format/lance-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.14 KB
/
Copy pathstyle.yml
File metadata and controls
47 lines (42 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Style Check
on:
push:
branches:
- main
pull_request:
paths:
- crates/**
- Cargo.toml
- Cargo.lock
- .github/workflows/style.yml
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-C debuginfo=1"
jobs:
format:
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --manifest-path crates/lance-graph/Cargo.toml -- --check
# clippy: runs LOCALLY as our internal pre-check, not on GitHub CI.
# GitHub CI focuses on compile + test + format + typos.
# Clippy discipline documented in CODING_PRACTICES.md:
#
# cargo clippy --features lab -- -D warnings
# cargo clippy --features serve -- -D warnings
typos:
name: Spell Check
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@v1.26.0