forked from JMRI/JMRI
-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (37 loc) · 1.16 KB
/
windows-java25-test.yml
File metadata and controls
41 lines (37 loc) · 1.16 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
# This workflow will build a Java project with Maven
# For more information see: https://docs.github.com/en/actions/tutorials/build-and-test-code/java-with-maven
name: Windows Java25 CI Tests
on: [ push, pull_request ]
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 25
- name: Change screen resolution
run: Set-DisplayResolution -Width 1600 -Height 1200 -Force
shell: pwsh
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Test with Maven
run: |
# run all tests using maven
mvn test "-Djmri.skipTestsRequiringSeparateRunning=true" "-Dsurefire.printSummary=true"
- name: Upload generated screenshots artifact
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: screenshots
path: temp/temp/*