-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
586221a
commit 49cc856
Showing
6 changed files
with
681 additions
and
417 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,23 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup bazel | ||
uses: bazelbuild/setup-bazelisk@v3 | ||
|
||
- name: Mount bazel cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/bazel | ||
key: bazel | ||
|
||
- name: Bazel build | ||
run: bazel build //... | ||
|
||
- name: Bazel test | ||
run: bazel test //... | ||
run: bazel test //... |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
load("@aspect_rules_lint//format:defs.bzl", "format_multirun") | ||
|
||
java_binary( | ||
name = "java-format", | ||
jvm_flags = [ | ||
"--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED", | ||
"--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", | ||
"--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED", | ||
"--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", | ||
"--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", | ||
], | ||
main_class = "com.google.googlejavaformat.java.Main", | ||
runtime_deps = [ | ||
"@google_java_format//jar", | ||
], | ||
) | ||
|
||
format_multirun( | ||
name = "format", | ||
java = ":java-format", | ||
) |
This file contains 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
Oops, something went wrong.