Skip to content

Install the CodeSee workflow. Learn more at https://docs.codesee.io #1

Install the CodeSee workflow. Learn more at https://docs.codesee.io

Install the CodeSee workflow. Learn more at https://docs.codesee.io #1

name: Craftgate Java CI
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Collect Workflow Telemetry
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key: 90b23594-1167-4b71-bf24-874821363456
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build with Gradle
run: ./gradlew build test