-
-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (39 loc) · 1.08 KB
/
pr.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
name: Test
on:
pull_request:
branches:
- 'main'
merge_group:
types:
- checks_requested
concurrency:
group: ${{ format('{0}-{1}', github.workflow, github.ref) }}
cancel-in-progress: true
jobs:
test:
name: Run unit tests
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
java: [ 21 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Common Setup
uses: ./.github/actions/common-setup
with:
java-version: ${{ matrix.java }}
- name: Build with Gradle
run: ./gradlew build --info
- name: Upload build results
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }} Java ${{ matrix.java }} build results
path: ${{ github.workspace }}/build/libs/
- name: Upload test results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }} Java ${{ matrix.java }} test results
path: ${{ github.workspace }}/build/reports/