Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Create Build and Test Workflow (#178)
Browse files Browse the repository at this point in the history
Automated workflow to test and build plugin on pull requests to master or opendistro release branches. On success, zip files are uploaded.

Co-authored-by: Mohammad Qureshi <[email protected]>
  • Loading branch information
dbbaughe and qreshi authored Apr 6, 2020
1 parent 20b83da commit f55ea1a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test-and-build-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test and Build Workflow
# This workflow is triggered on pull requests to master or a opendistro release branch
on:
pull_request:
branches:
- master
- opendistro-*

jobs:
build:
strategy:
matrix:
java: [12]
# Job name
name: Build Index Management with JDK ${{ matrix.java }}
# This job runs on Linux
runs-on: ubuntu-latest
steps:
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v1
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Build with Gradle
run: ./gradlew build
- name: Create Artifact Path
run: |
mkdir -p index-management-artifacts
cp ./build/distributions/*.zip index-management-artifacts
# This step uses the upload-artifact Github action: https://github.com/actions/upload-artifact
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: index-management-plugin
path: index-management-artifacts

0 comments on commit f55ea1a

Please sign in to comment.