Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add check for rules docs #3150

Merged
merged 3 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ env:

jobs:
format:
name: Format and Lint Rust Files
name: Format project
runs-on: ubuntu-latest
steps:
- name: Checkout PR branch
Expand All @@ -44,7 +44,7 @@ jobs:
taplo format --check

lint:
name: Lint Rust Files
name: Lint project
runs-on: ubuntu-latest
steps:
- name: Checkout PR Branch
Expand All @@ -57,7 +57,9 @@ jobs:
components: clippy
cache-base: main
- name: Run clippy
run: cargo lint
run: |
cargo lint
cargo run -p rules_check

check-dependencies:
name: Check Dependencies
Expand Down
51 changes: 50 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[workspace]
# Use the newer version of the cargo resolver
# https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
members = ["crates/*", "xtask/bench", "xtask/codegen", "xtask/coverage", "xtask/libs_bench"]
members = ["crates/*", "xtask/bench", "xtask/codegen", "xtask/coverage", "xtask/libs_bench", "xtask/rules_check"]
resolver = "2"

[workspace.lints.rust]
Expand Down
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ gen-lint:
cargo codegen-configuration
cargo run -p xtask_codegen --features configuration -- migrate-eslint
just gen-bindings
cargo run -p rules_check
just format

# Generates the initial files for all formatter crates
Expand Down Expand Up @@ -121,7 +122,7 @@ test-quick package:

# Alias for `cargo lint`, it runs clippy on the whole codebase
lint:
cargo lint
cargo lint

# When you finished coding, run this command to run the same commands in the CI.
ready:
Expand Down
26 changes: 26 additions & 0 deletions xtask/rules_check/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
edition = "2021"
name = "rules_check"
publish = false
version = "0.0.0"

[dependencies]
anyhow = { workspace = true }
biome_analyze = { workspace = true }
biome_console = { workspace = true }
biome_css_analyze = { workspace = true }
biome_css_parser = { workspace = true }
biome_css_syntax = { workspace = true }
biome_diagnostics = { workspace = true }
biome_js_analyze = { workspace = true }
biome_js_parser = { workspace = true }
biome_js_syntax = { workspace = true }
biome_json_analyze = { workspace = true }
biome_json_parser = { workspace = true }
biome_json_syntax = { workspace = true }
biome_service = { workspace = true }
pulldown-cmark = "0.10.3"


[lints]
workspace = true
Loading
Loading