-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.1 KB
/
public-tests.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
34
35
36
37
38
39
40
41
42
43
name: Gradle Check
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- main
jobs:
gradle_check:
name: "Check on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Restore LFS Cache
uses: actions/cache@v2
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
- name: Git LFS Pull
run: |
git lfs pull
git add .
git reset --hard
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Public Tests
run: ./gradlew clean graderPublicRun --continue