2020-04-14 21:51:27 +07:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
schedule:
|
|
|
|
- cron: '0 10 * * *' # Once per day at 10am UTC
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
2020-08-20 17:53:58 +07:00
|
|
|
jdk: [8,11,12]
|
2020-04-14 21:51:27 +07:00
|
|
|
fail-fast: false
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK ${{ matrix.jdk }}
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.jdk }}
|
|
|
|
- name: Build with Gradle
|
2020-04-24 02:37:17 +07:00
|
|
|
run: ./gradlew clean build
|
2020-04-14 21:51:27 +07:00
|
|
|
snapshot_tests:
|
|
|
|
name: Test against snapshots
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 8
|
|
|
|
- name: Test
|
|
|
|
run: echo Testing against snapshots
|
|
|
|
sonar:
|
|
|
|
name: Static Code Analysis
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 8
|
|
|
|
- name: Sonar
|
|
|
|
run: echo Running Sonarqube static code analysis
|
|
|
|
artifacts:
|
|
|
|
name: Deploy Artifacts
|
|
|
|
needs: [build, snapshot_tests, sonar]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 8
|
|
|
|
- name: Deploy Artifacts
|
|
|
|
run: echo Deploying Artifacts
|
|
|
|
docs:
|
|
|
|
name: Deploy Docs
|
|
|
|
needs: [build, snapshot_tests, sonar]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 8
|
|
|
|
- name: Deploy Docs
|
|
|
|
run: echo Deploying Docs
|
|
|
|
schema:
|
|
|
|
name: Deploy Schema
|
|
|
|
needs: [build, snapshot_tests, sonar]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 8
|
|
|
|
- name: Deploy Schema
|
2020-04-21 17:04:38 +07:00
|
|
|
run: echo Deploying Schema
|