-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 879 Bytes
/
java.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Java
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup JDK 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: Grant execution permission for gradlew
run: chmod +x gradlew
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ github.event.repository.name }}-${{ hashFiles('**/*.gradle')}}
restore-keys: ${{ runner.os }}-gradle-${{ github.event.repository.name }}
- name: Build with Gradlew
run: ./gradlew build
- name: Test with Gradlew
run: ./gradlew :test --tests "SolutionTest"