Skip to content

Commit 6ba49b0

Browse files
authored
Merge pull request AnySoftKeyboard#4109 from AnySoftKeyboard/new-bazel-formetter
Formatter using Bazel
2 parents ea47e68 + 5650d8e commit 6ba49b0

File tree

224 files changed

+5997
-6774
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+5997
-6774
lines changed

.bazelrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
common --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
1+
common --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
2+
# Java configs
3+
common --java_language_version=17
4+
common --java_runtime_version=remotejdk_17
5+
common --tool_java_language_version=17
6+
common --tool_java_runtime_version=remotejdk_17

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
---
12
github: [menny]
23
custom: ["https://github.com/sponsors/menny", "https://www.paypal.me/menny"]

.github/actionlint.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
self-hosted-runner:
3+
# Labels of self-hosted runner in array of strings.
4+
labels: []
5+
# Configuration variables in array of strings defined in your repository or
6+
# organization. `null` means disabling configuration variables check.
7+
# Empty array means no configuration variable is allowed.
8+
config-variables: null
9+
# Configuration for file paths. The keys are glob patterns to match to file
10+
# paths relative to the repository root. The values are the configurations for
11+
# the file paths. Note that the path separator is always '/'.
12+
# The following configurations are available.
13+
#
14+
# "ignore" is an array of regular expression patterns. Matched error messages
15+
# are ignored. This is similar to the "-ignore" command line option.
16+
paths:
17+
.github/workflows/**/*.yml:
18+
ignore:
19+
- 'file "/bin/bash" does not exist in'
20+
# all shellcheck errors
21+
- '.+[shellcheck].*'

.github/actions/codecov/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: "code-coverage"
23
author: "menny"
34
description: "action which locate coverage files and uploads them"

.github/actions/collect-reports/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: "collect-reports"
23
author: "menny"
34
description: "Collect checks report files"

.github/actions/deploy-request/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: "deploy-request"
23
description: "Request a deployment"
34
author: "menny"

.github/actions/deploy/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: "deploy"
23
description: "Deploys the AnySoftKeyboard artifacts to Play Store"
34
author: "menny"

.github/actions/test-shard-run/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: "Run tests"
23
author: "menny"
34
description: "Runs tests using Gradle and sharding support"

.github/workflows/auto_approve.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: auto-approve-pr
23
on:
34
pull_request:

.github/workflows/checks.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: checks
23
on:
34
push:
@@ -32,7 +33,14 @@ jobs:
3233
- run: bazel test --build_tests_only //...
3334
- name: internal checkers
3435
run: bazel run //js/checkers -- --root_dir "${{ github.workspace }}"
36+
- name: Github Action Linter
37+
run: bazel run @multitool//tools/actionlint:cwd -- -config-file "${{ github.workspace }}/.github/actionlint.yaml"
38+
- name: Code formatting
39+
run: |
40+
bazel run //:format
41+
if [[ $(git status --porcelain) ]]; then echo "**** run 'bazel run //:format' to fix formatting errors"; exit 1; fi
3542
js-checks:
43+
# Test js code, since we have not migrated to bazel yet
3644
runs-on: ubuntu-24.04
3745
steps:
3846
- uses: actions/[email protected]
@@ -64,8 +72,6 @@ jobs:
6472
run: ./scripts/ci/ci_setup.sh
6573
- name: check
6674
run: ./scripts/ci/ci_check.sh
67-
- name: check-all-yamls
68-
run: ./scripts/ci/ci_check_yamls.sh
6975
- name: verify-version-classes-greps
7076
run: ./scripts/ci/third-party-update/verify-third-party-update-greps.sh
7177
- name: fix-fs

0 commit comments

Comments
 (0)