forked from asispts/neo-git-graph
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (37 loc) · 1.21 KB
/
Copy pathengine.yml
File metadata and controls
47 lines (37 loc) · 1.21 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: engine
# Rust gate for `engine/` (Phase 16, slice 16.1). The extension's Biome and
# SonarQube gates never see the engine — `sonar.sources` and Biome's
# `includes` allowlist both miss it — so these four cargo commands are the
# engine's own pre-commit gate. They run only when the engine changed.
on:
push:
paths:
- "engine/**"
- ".github/workflows/engine.yml"
pull_request:
paths:
- "engine/**"
- ".github/workflows/engine.yml"
jobs:
gate:
name: cargo check, test, clippy, fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
- name: Setup Node.js
uses: actions/setup-node@v7.0.0
with:
node-version: 24
- run: corepack enable
# `ubuntu-latest` ships a stable Rust toolchain, but clippy and rustfmt
# are not guaranteed components — ensure both before running the gate.
- name: Ensure clippy and rustfmt
run: rustup component add clippy rustfmt
- name: cargo check
run: pnpm run engine:check
- name: cargo test
run: pnpm run engine:test
- name: cargo clippy
run: pnpm run engine:lint
- name: cargo fmt
run: pnpm run engine:fmt