Repository navigation
Set up Bazel workspace structure, rules_lint formatters/linters, and CI - #1
Merged
Merged
Conversation
Configure Bazel bzlmod with rules_jvm_external and rules_kotlin, define package structures for app, core/linguistics, and tools/preprocessor, and add GitHub Actions CI workflow for build and test.
Configure formatters and linters using aspect_rules_lint. Integrate ktfmt with --kotlinlang-style, ktlint aspect with .editorconfig, and buildifier for Starlark formatting and linting. Add format check and lint steps to GitHub Actions CI workflow.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR sets up the foundational Bazel workspace structure, external dependencies via Bzlmod, formatters and linters via
aspect_rules_lint, and a GitHub Actions CI workflow.Changes
Bazel & Bzlmod Setup:
.bazelversionwith Bazel 9.3.0..bazelrcwith UI options, error test output, and linting aspects.MODULE.bazelwithrules_jvm_external(7.2),rules_kotlin(2.4.20), andrules_java(9.9.0).sqlite-jdbc,kotlinx-serialization-json,kotlinx-coroutines-core, andjunit.//core/linguistics,//tools/preprocessor, and//app.Formatters & Linters (
aspect_rules_lint):ktfmtconfigured with--kotlinlang-style.ktlintaspect referencing.editorconfigand baseline file.buildifierfor Starlark formatting and linting.shfmtfor shell script formatting.//:formatand//:format.check.CI Workflow:
.github/workflows/ci.ymlrunning on pull requests and pushes tomain.bazelisk run //:format.check), linting (bazelisk build --config=lint //...), building (bazelisk build //...), and testing (bazelisk test //...).