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

Create Build and Test Workflow #30

Merged
merged 1 commit into from
Dec 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/test-and-build-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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 Job Scheduler 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 job-scheduler-artifacts
cp ./build/distributions/*.zip job-scheduler-artifacts
cp ./sample-extension-plugin/build/distributions/*.zip job-scheduler-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: job-scheduler-plugin
path: job-scheduler-artifacts