-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 934 Bytes
/
gradle.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
name: Gradle
on: [push]
env:
JAVA_VERSION: '8'
jobs:
ui:
name: ui gradle
runs-on: ubuntu-latest
steps:
- name: Git clone
uses: actions/checkout@v3
- name: Setup java ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v3
with:
# 'temurin' 'zulu' 'adopt' 'adopt-hotspot' 'adopt-openj9' 'liberica' 'microsoft'
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
- name: Cache gradle deps ~/.gradle
uses: actions/cache@v3
with:
path: ~/.gradle
key: ${{ runner.os }}-${{ matrix.os }}-gradle-
restore-keys: |
${{ runner.os }}-${{ matrix.os }}-gradle-
- name: Build and run everything
run: |
cd $GITHUB_WORKSPACE && ./gradlew clean process-resources ui:war
cd $GITHUB_WORKSPACE && ./gradlew test -x jboss-testcontainers-selenide-local-e2e-tests:test