-
Notifications
You must be signed in to change notification settings - Fork 14
111 lines (96 loc) · 3.33 KB
/
run-regression-tests.yml
File metadata and controls
111 lines (96 loc) · 3.33 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: run-regression-tests
on:
pull_request:
branches:
- main
jobs:
build:
strategy:
fail-fast: false
matrix:
runtime: [ linux, mac, windows ]
targetPlatform: [ 4Q2025 ]
include:
- runtime: linux
os: ubuntu-latest
- runtime: mac
os: macOS-latest
- runtime: windows
os: windows-latest
name: Build Plugin
runs-on: ${{ matrix.os }}
steps:
# Checkout the eclipse plugin repository.
- name: 'Setup: Checkout plugin'
uses: actions/checkout@v2
# Restore Maven and Tycho dependencies cache
- name: 'Cache: Maven and Tycho repository (restore)'
uses: actions/cache/restore@v4
with:
path: |
~/.m2/repository
!~/.m2/repository/io/openliberty/tools/eclipse
key: ${{ runner.os }}-maven-tycho-${{ hashFiles('pom.xml', '.mvn/**', 'releng/**') }}
restore-keys: |
${{ runner.os }}-maven-tycho-
# Restore Gradle dependencies cache
- name: 'Cache: Gradle (restore)'
uses: actions/cache/restore@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# Restore downloaded tools cache (JDK, Maven, Gradle)
- name: 'Cache: Downloaded tools (restore)'
uses: actions/cache/restore@v4
with:
path: test-tools/liberty-dev-tools
key: ${{ runner.os }}-tools-jdk21.0.3-maven3.9.6-gradle8.8
restore-keys: |
${{ runner.os }}-tools-
# Install the required software.
- name: 'Setup: Install required software'
run: bash ./tests/resources/ci/scripts/setup.sh
# Build the plugin.
- name: 'Build: Build-Package-RunTests'
run: bash ./tests/resources/ci/scripts/exec.sh ${{ matrix.targetPlatform }}
# Collect logs
- run: |
mkdir logs
find tests -type f -name "lte-dev-mode-output-*.log" -exec cp {} logs \;
if: failure()
# save logs
- name: Upload Logs
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-app-logs
path: logs
# Save Maven and Tycho dependencies cache (even on failure)
- name: 'Cache: Maven and Tycho repository (save)'
uses: actions/cache/save@v4
if: always()
with:
path: |
~/.m2/repository
!~/.m2/repository/io/openliberty/tools/eclipse
key: ${{ runner.os }}-maven-tycho-${{ hashFiles('pom.xml', '.mvn/**', 'releng/**') }}
# Save Gradle dependencies cache (even on failure)
- name: 'Cache: Gradle (save)'
uses: actions/cache/save@v4
if: always()
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
# Save downloaded tools cache (even on failure)
- name: 'Cache: Downloaded tools (save)'
uses: actions/cache/save@v4
if: always()
with:
path: test-tools/liberty-dev-tools
key: ${{ runner.os }}-tools-jdk21.0.3-maven3.9.6-gradle8.8