• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
2# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
3
4name: Java CI with Gradle
5
6on:
7  push:
8    branches: [ "master" ]
9  pull_request:
10    branches: [ "master" ]
11
12permissions:
13  contents: read
14
15jobs:
16  build:
17
18    runs-on: ubuntu-latest
19
20    steps:
21    - uses: actions/checkout@v3
22    - name: Set up JDK 11
23      uses: actions/setup-java@v3
24      with:
25        java-version: '11'
26        distribution: 'temurin'
27    - name: Build with Gradle
28      uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
29      with:
30        arguments: build
31        build-root-directory: server/
32