-
Notifications
You must be signed in to change notification settings - Fork 316
66 lines (55 loc) · 1.62 KB
/
Copy pathassembly.yml
File metadata and controls
66 lines (55 loc) · 1.62 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
55
56
57
58
59
60
61
62
63
64
65
66
name: Java CI
on:
push:
pull_request:
branches: [ main ]
permissions:
contents: read
# Cancel in-progress runs for the same ref (e.g. when pushing new commits to a PR)
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Build with Gradle
run: ./gradlew build --stacktrace
- name: robocode.core test artifacts
if: always()
uses: actions/upload-artifact@v7
with:
name: robocode.core-test-result
path: robocode.core/build/reports/tests/test
- name: robocode.host test artifacts
if: always()
uses: actions/upload-artifact@v7
with:
name: robocode.host-test-result
path: robocode.host/build/reports/tests/test
- name: robocode.tests test artifacts
if: always()
uses: actions/upload-artifact@v7
with:
name: robocode.tests-result
path: robocode.tests/build/reports/tests/test
- name: setup binary artifact
uses: actions/upload-artifact@v7
with:
name: robocode-setup
path: build/robocode-*-setup.jar
- name: Publish test results summary
if: always()
uses: dorny/test-reporter@v3
with:
name: Unit test results
path: '**/build/test-results/test/*.xml'
reporter: java-junit
fail-on-error: true