Skip to content

Fix JDK version in gradle_release.yml (#453) #56

Fix JDK version in gradle_release.yml (#453)

Fix JDK version in gradle_release.yml (#453) #56

Workflow file for this run

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Set up AdoptOpenJDK 17
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
- name: Cache local Gradle repository
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle
- name: Run tests
run: ./gradlew :core:test :bank:test :fourthline:test :session:test :qes:test :startup:test
env:
FOURTHLINE_GRADLE_TOKEN: ${{ secrets.FOURTHLINE_GRADLE_TOKEN }}
- name: Build release
run: ./gradlew clean :bank:assembleRelease :fourthline:assembleRelease :example:assembleRelease :core:assembleRelease :session:assembleRelease :startup:assembleRelease