-
Notifications
You must be signed in to change notification settings - Fork 13
54 lines (52 loc) · 1.8 KB
/
gradle.yml
File metadata and controls
54 lines (52 loc) · 1.8 KB
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
44
45
46
47
48
49
50
51
52
53
54
name: Gradle
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java: [21]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- name: Skip non-ubuntu runners in ACT
if: ${{ env.ACT && matrix.os != 'ubuntu-latest' }}
run: exit 0
- name: TB License
run: |
[ -z "${{secrets.TB_LICENSE}}" ] && exit 1
mkdir -p ~/.vaadin/
echo "${{secrets.TB_LICENSE}}" | jq -Rn 'input | split("/") as $parts | {username: $parts[0], proKey: $parts[1]}' > ~/.vaadin/proKey
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: '24'
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.vaadin
key: ${{ runner.os }}-gradle-${{ hashFiles('build.gradle', 'gradle/wrapper/gradle-wrapper.properties', 'gradle.properties') }}
- name: Install Chrome Libs (ACT in linux)
if: ${{ env.ACT && matrix.os == 'ubuntu-latest' }}
run: npx playwright install --with-deps chrome
- name: Build and Test with Gradle
run: |
./gradlew --stacktrace --info --no-daemon clean build \
-Pvaadin.productionMode -Pit \
-Dcom.vaadin.testbench.Parameters.headless=true \
-Dcom.vaadin.testbench.Parameters.chromeOptions=--no-sandbox
- name: Publish Test Results
if: ${{ !env.ACT && always() && runner.os == 'Linux' }}
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: build/test-results/**/TEST-*.xml