-
Notifications
You must be signed in to change notification settings - Fork 3
76 lines (73 loc) · 2.49 KB
/
builder_image_tests.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
67
68
69
70
71
72
73
74
75
76
name: Mandrel Builder Image
on:
workflow_dispatch:
push:
paths-ignore:
- 'LICENSE'
- '**.md'
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
paths-ignore:
- 'LICENSE'
- '**.md'
env:
LANG: en_US.UTF-8
FAIL_ON_PERF_REGRESSION: false
CMD_LONG_TIMEOUT_MS: 180000
LONG_GOTO_URL_TIMEOUT_MS: 200000
jobs:
local-run:
name: ${{ matrix.mandrel-builder-image }} - ${{ matrix.os }} - ${{ matrix.quarkus-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04 ]
include:
- quarkus-version: '2.13.8.Final'
mandrel-builder-image: '22.3-java17'
- quarkus-version: '2.16.9.Final'
mandrel-builder-image: '22.3-java17'
- quarkus-version: '3.2.3.Final'
mandrel-builder-image: 'jdk-17'
- quarkus-version: '3.2.3.Final'
mandrel-builder-image: 'jdk-20'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
path: ts
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ matrix.quarkus-version }}-${{ matrix.os }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ matrix.quarkus-version }}-${{ matrix.os }}-
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
- name: Linux test
if: startsWith(matrix.os, 'ubuntu')
timeout-minutes: 55
env:
MAVEN_OPTS: -Xmx1g
run: |
sudo apt-get update -y
sudo apt-get install -y gdb
pushd ts
mkdir -p ~/.m2/
cp .github/mvn-settings.xml ~/.m2/settings.xml
mvn clean verify -Ptestsuite-builder-image -Dquarkus.version=${{ matrix.quarkus-version }} -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel-builder-image:${{ matrix.mandrel-builder-image }}
shell: bash
- name: Prepare failure archive (if maven failed)
if: failure()
run: tar czvf test-reports-mandrel-it.tgz ${{ github.workspace }}/ts/testsuite/target/archived-logs
- name: Upload failure Archive (if maven failed)
uses: actions/upload-artifact@v3
if: failure()
with:
name: reports-${{ matrix.mandrel-builder-image }}-${{ matrix.quarkus-version }}-${{ matrix.os }}
path: 'test-reports-mandrel-it.tgz'