blob: 0d217a77028608a9cb865b229159873df1140755 [file] [log] [blame]
name: SolrJ Tests
on:
workflow_dispatch
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
build:
container:
image: ubuntu-latest
options: --network bridge
test:
name: Run SolrJ 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 scipts
run: chmod +x cluster.sh;chmod +x cluster-stop.sh;chmod +x manual-test.sh
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
run: ./gradlew build
# - uses: actions/cache@v2
# with:
# path: |
# ~/.gradle/caches
# key: ${{ runner.os }}-gradle-solrj-${{ hashFiles('versions.lock') }}
# restore-keys: |
# ${{ runner.os }}-gradle-solrj-
# ${{ runner.os }}-gradle-
- name: Init cluster
run: ./manual-test.sh