-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Split things up using test matrix (#173)
* [CI] Split things up using test matrix * Create buildifier.yaml * Update main.yml * Update buildifier.yaml * Create BUILD.bazel * Formatting * More fixes * Don't run the bzlmod tests * Mount caches
- Loading branch information
Showing
7 changed files
with
109 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
load("@buildifier_prebuilt//:rules.bzl", "buildifier") | ||
|
||
buildifier( | ||
name = "buildifier.check", | ||
exclude_patterns = ["./.git/*"], | ||
lint_mode = "warn", | ||
mode = "diff", | ||
) | ||
|
||
buildifier( | ||
name = "buildifier.fix", | ||
disabled_rewrites = [ | ||
"label", | ||
], | ||
exclude_patterns = ["./.git/*"], | ||
lint_mode = "fix", | ||
) |
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,26 @@ | ||
name: Buildifier | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: buildifier | ||
run: bazel run --enable_bzlmod //.github/workflows:buildifier.check | ||
shellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout the sources" | ||
uses: actions/checkout@v4 | ||
- name: "Lint Shell files" | ||
run: for file in $(ind . -type f -name "*.sh" -not -path "./.github/*"); do shellcheck $file; done; |
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
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
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,3 +1,6 @@ | ||
"""Bzlmod extensions for detekt | ||
""" | ||
|
||
load( | ||
"@bazel_tools//tools/build_defs/repo:http.bzl", | ||
"http_jar", | ||
|
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,3 +1,6 @@ | ||
"""Macro for defining detekt versions. | ||
""" | ||
|
||
def detekt_version(version, sha256): | ||
"""Create a detekt version. | ||
|
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