From 1f24a6c350ff1c5d6ae417139cb2282ca2e90b3c Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Mon, 6 Apr 2026 21:51:08 +0000 Subject: [PATCH 1/2] Upgrade gradle/actions from v5 to v6 with basic caching Use the MIT-licensed basic caching provider (a thin wrapper over actions/cache) instead of the default enhanced caching, which is proprietary and subject to separate terms of use. Resolves ENG-4638 Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/api-compat.yml | 6 +++++- .github/workflows/ci.yml | 6 +++++- .github/workflows/codeql.yml | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/api-compat.yml b/.github/workflows/api-compat.yml index be46c3e..14ebbf9 100644 --- a/.github/workflows/api-compat.yml +++ b/.github/workflows/api-compat.yml @@ -16,7 +16,11 @@ jobs: distribution: temurin java-version: '17' - - uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2 + - uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0 + with: + # Use the MIT-licensed basic caching provider instead of the + # default enhanced caching, which is proprietary. + cache-provider: basic - name: Check API Compatibility run: ./gradlew :device-sdk:japicmp diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7261a7c..3669e86 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,11 @@ jobs: distribution: temurin java-version: '17' - - uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2 + - uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0 + with: + # Use the MIT-licensed basic caching provider instead of the + # default enhanced caching, which is proprietary. + cache-provider: basic - name: Build SDK run: ./gradlew :device-sdk:build diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 400ce5c..9853528 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -25,7 +25,7 @@ jobs: distribution: temurin java-version: '17' - - uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2 + - uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0 with: cache-disabled: true From e303c18fa07a44bbe4989cb6a9fb361bba2388a9 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Mon, 6 Apr 2026 21:54:41 +0000 Subject: [PATCH 2/2] Add yamllint and prettier to mise config These are used by precious for pre-commit linting. Previously prettier was invoked via npx, requiring Node.js to be installed separately. Co-Authored-By: Claude Opus 4.6 (1M context) --- .precious.toml | 4 ++-- mise.toml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.precious.toml b/.precious.toml index 3e93295..b53cc49 100644 --- a/.precious.toml +++ b/.precious.toml @@ -13,12 +13,12 @@ expect-stderr = true type = "both" include = ["**/*.md"] exclude = [".idea/**", "build/**"] -cmd = ["npx", "prettier", "--parser", "markdown", "--prose-wrap", "always"] +cmd = ["prettier", "--parser", "markdown", "--prose-wrap", "always"] lint-flags = ["--check"] tidy-flags = ["--write"] ok-exit-codes = 0 lint-failure-exit-codes = 1 -ignore-stderr = ["Code style issues", "npm warn exec"] +ignore-stderr = ["Code style issues"] [commands.yamllint] type = "lint" diff --git a/mise.toml b/mise.toml index e9dae3a..b72db2a 100644 --- a/mise.toml +++ b/mise.toml @@ -4,6 +4,10 @@ java = "temurin-21" # yq is used by release.sh to parse ~/.m2/settings.xml for Maven Central credentials yq = "latest" "github:houseabsolute/precious" = "latest" +# yamllint is used by precious for YAML linting +yamllint = "latest" +# prettier is used by precious for Markdown formatting +prettier = "latest" android-sdk = "latest" [tasks.setup]