You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by md...@apache.org on 2022/03/07 16:54:07 UTC
[solr] branch main updated: SOLR-16068 github action for integration tests (#733)
This is an automated email from the ASF dual-hosted git repository.
mdrob pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new bd79951 SOLR-16068 github action for integration tests (#733)
bd79951 is described below
commit bd79951eac0734f60b5bc3f7f845939f4baf434f
Author: Mike Drob <md...@apache.org>
AuthorDate: Mon Mar 7 10:54:01 2022 -0600
SOLR-16068 github action for integration tests (#733)
---
.github/workflows/bin-solr-test.yml | 40 +++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/.github/workflows/bin-solr-test.yml b/.github/workflows/bin-solr-test.yml
new file mode 100644
index 0000000..92cc2d2
--- /dev/null
+++ b/.github/workflows/bin-solr-test.yml
@@ -0,0 +1,40 @@
+name: Solr Script Tests
+
+on:
+ pull_request:
+ branches:
+ - 'main'
+ paths:
+ - '.github/workflows/bin-solr-test.yml'
+ - 'solr/bin/**'
+ - 'solr/packaging/**'
+
+jobs:
+ test:
+ name: Run Solr Script Tests
+
+ runs-on: ubuntu-latest
+
+ steps:
+ # Setup
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v2
+ with:
+ distribution: 'temurin'
+ java-version: 11
+ java-package: jdk
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+ - uses: actions/cache@v2
+ with:
+ path: |
+ ~/.gradle/caches
+ key: ${{ runner.os }}-gradle-binsolr-${{ hashFiles('versions.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-gradle-binsolr-
+ ${{ runner.os }}-gradle-
+ - name: Initialize gradle settings
+ run: ./gradlew localSettings
+ - name: Test the bin/solr script
+ run: ./gradlew integrationTests