dweiss commented on a change in pull request #376:
URL: https://github.com/apache/lucene/pull/376#discussion_r726860485
##########
File path: .github/workflows/gradle-precommit.yml
##########
@@ -33,9 +37,46 @@ jobs:
${{ runner.os }}-gradle-
- name: Initialize gradle settings
- run: ./gradlew localSettings
+ run: ./gradlew localSettings --max-workers 2
- name: Run gradle check (without tests)
- run: ./gradlew check -x test -Ptask.times=true
+ run: ./gradlew check -x test -Ptask.times=true --max-workers 2
+
+ - uses: gradle/wrapper-validation-action@v1
+
+ tests_linux:
+ name: gradle test w/ Java 11
+
+ runs-on: ubuntu-latest
Review comment:
We could add Windows to the job matrix as well?
##########
File path: .github/workflows/gradle-precommit.yml
##########
@@ -33,9 +37,46 @@ jobs:
${{ runner.os }}-gradle-
- name: Initialize gradle settings
- run: ./gradlew localSettings
+ run: ./gradlew localSettings --max-workers 2
- name: Run gradle check (without tests)
- run: ./gradlew check -x test -Ptask.times=true
+ run: ./gradlew check -x test -Ptask.times=true --max-workers 2
+
+ - uses: gradle/wrapper-validation-action@v1
+
+ tests_linux:
+ name: gradle test w/ Java 11
+
+ runs-on: ubuntu-latest
+
+ steps:
+ # Setup
+ - uses: actions/checkout@v2
+
+ - name: Set up JDK 11
+ uses: actions/setup-java@v1
+ with:
+ java-version: 11
+
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+
+ - uses: actions/cache@v2
+ with:
+ path: |
+ ~/.gradle/caches
+ key: ${{ runner.os }}-gradle-precommit-${{ hashFiles('versions.lock')
}}
+ restore-keys: |
+ ${{ runner.os }}-gradle-precommit-
+ ${{ runner.os }}-gradle-
+
+ - name: Initialize gradle settings
+ run: ./gradlew localSettings --max-workers 2
+
+ - name: Echo settings
Review comment:
I added this out of curiosity. Can be removed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]