mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
ci: switch to jdk 21 only for the folio step
This commit is contained in:
1 parent
cc32640d03
commit
f65bc1631c
1 file changed
+12
-10
+12
-10
@@ -27,16 +27,11 @@ jobs:
|
|||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Set up the JDKs
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
# The sidecar toolchain pins 17; the metro gradle plugin folio
|
java-version: "17"
|
||||||
# compiles with needs a 21 runtime. Both are installed so each
|
|
||||||
# gradle build can pick its own.
|
|
||||||
java-version: |
|
|
||||||
17
|
|
||||||
21
|
|
||||||
|
|
||||||
- name: Set up Android SDK
|
- name: Set up Android SDK
|
||||||
uses: android-actions/setup-android@v3
|
uses: android-actions/setup-android@v3
|
||||||
@@ -100,9 +95,16 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
# folio's own gradle build, which `make test` does not reach. Its own
|
# folio is its own gradle build, and the metro plugin it compiles with
|
||||||
# step rather than part of `test` so the target developers run
|
# needs a 21 runtime where the sidecar toolchain pins 17. Switching
|
||||||
# constantly keeps its 17 floor.
|
# JAVA_HOME after `make test` rather than installing both up front
|
||||||
|
# leaves every step above this one on exactly the JDK it ran on before.
|
||||||
|
- name: Set up JDK 21 for folio
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: temurin
|
||||||
|
java-version: "21"
|
||||||
|
|
||||||
- name: Run folio's unit tests
|
- name: Run folio's unit tests
|
||||||
run: make test-folio
|
run: make test-folio
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user