mirror of https://github.com/apache/lucene.git
Add github on-commit tests on MacOS and Windows (#14054)
This commit is contained in:
parent
76f5254a75
commit
b9385a8a29
|
@ -34,11 +34,14 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Correct git autocrlf
|
||||||
|
run: git config --global core.autocrlf false
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/actions/prepare-for-build
|
- uses: ./.github/actions/prepare-for-build
|
||||||
|
|
||||||
- name: Run gradle check (without tests)
|
- name: Run gradle check (without tests)
|
||||||
run: ./gradlew check -x test -Ptask.times=true --max-workers 2
|
run: ./gradlew check -x test "-Ptask.times=true" --max-workers 2
|
||||||
|
|
||||||
|
|
||||||
# This runs all tests without any other validation checks.
|
# This runs all tests without any other validation checks.
|
||||||
|
@ -49,14 +52,16 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# Operating systems to run on.
|
# Operating systems to run on.
|
||||||
# windows-latest: fairly slow to build and results in odd errors (see LUCENE-10167)
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
||||||
# macos-latest: a tad slower than ubuntu and pretty much the same (?) so leaving out.
|
|
||||||
os: [ ubuntu-latest ]
|
|
||||||
java: [ '21' ]
|
java: [ '21' ]
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Correct git autocrlf on Windows
|
||||||
|
if: startsWith(matrix.os, 'windows')
|
||||||
|
run: git config --global core.autocrlf false
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/actions/prepare-for-build
|
- uses: ./.github/actions/prepare-for-build
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue