-
Notifications
You must be signed in to change notification settings - Fork 111
67 lines (54 loc) · 1.6 KB
/
build.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build
on:
push:
pull_request:
env:
RAPIDWRIGHT_VERSION: v2024.1.3-beta
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
single_threaded: [multi-threaded, single-threaded]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup JDK 1.11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
- name: Setup Python 3.7
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: Cache Jars & Data
id: cache-rapidwright
uses: actions/cache@v4
with:
path: |
data
key: rapidwright-clouddata-v2-${{ env.RAPIDWRIGHT_VERSION }}
- name: Install Python Dependencies
run: |
pip install pytest python/
- name: Compile
run: ./gradlew assemble
- name: Test
run: ./gradlew -PlimitToSingleProc=${{ matrix.single_threaded }} test
- name: Archive Java Test Report
uses: actions/upload-artifact@v4
if: always() && matrix.os == 'ubuntu-latest'
with:
name: Java Test Report ${{ matrix.single_threaded }}
path: build/reports/tests/testJava
- name: Upload Test Results
if: always() && matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: Unit Test Results ${{ matrix.single_threaded }}
path: |
build/test-results/**/*.xml
- name: Terminate Gradle to allow caching
run: ./gradlew --stop