-
Notifications
You must be signed in to change notification settings - Fork 27
34 lines (31 loc) · 988 Bytes
/
unit-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
name: Unit tests
on: [push, pull_request]
jobs:
build:
name: Build and unit tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
!*gluecodium*
!*lime-*
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build and test :lime-runtime
run: ./gradlew :lime-runtime:build
- name: Build and test :lime-loader
run: ./gradlew :lime-loader:build
- name: Build and test :gluecodium
run: ./gradlew :gluecodium:build
- name: Build and test :gluecodium-gradle
run: ./gradlew :gluecodium-gradle:build