forked from adoptium/aqa-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
189 lines (180 loc) · 6.07 KB
/
actionExample.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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
name: "place holder for example,this can be replaced by any following examples "
on:
push:
branches-ignore:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo Hello, world!
##########################################################################
#
# Case one :
# Workflow:
# Step 1: build-jdk-openj9 action
# Step 2: run-aqa action (Note: both action is temporary personal branch
# Step 2: upload test result if there is failure //Note: 1. using v2-preview as wildcards is not official supported https://github.com/actions/upload-artifact/issues/11
# // 2. Multi-path is not official supported yet. https://github.com/actions/upload-artifact/issues/55
# // To upload configure log using path: ./**/config.log
# Tested:
# https://github.com/sophia-guo/runaqaTest/runs/612331604?check_suite_focus=true
#
###########################################################################
#
# name: "run-aqa test against build OpenJ9 JDK directly"
# on: # rebuild any PRs and main branch changes
# push:
# jobs:
# build:
# runs-on: ubuntu-16.04
# steps:
# - uses: actions/checkout@v1
# - name: Build Openj9 JDK
# id: buildOpenj9
# uses: sophia-guo/build-jdk-openj9@v2
# with:
# version: '8'
# - name: AQA
# uses: adoptium/run-aqa@v1
# env:
# TEST_JDK_HOME: ${{ steps.buildOpenj9.outputs.BuildOpenJ9JDK }}
# with:
# build_list: 'openjdk'
# target: '_jdk_math'
# - uses: actions/upload-artifact@v2-preview
# if: failure()
# with:
# name: output
# path: ./**/output_*/
###########################################################################
#
# Case two:
# Workflow:
# Step 1: wget a coustomized JDK tar file
# Step 2: AdoptOpenJDK/install-jdk action install JDK as a local file
# Step 3: run-aqa action (Note: both action is temporary personal branch
# Test reference:
# https://github.com/sophia-guo/runaqaTest/runs/603152361?check_suite_focus=true
###########################################################################
#
# name: "run-aqa against a local cusomized JDK"
# on: # rebuild any PRs and main branch changes
# push:
#
# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - run: 'wget -P buildJDK https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.6_10.tar.gz'
# - uses: AdoptOpenJDK/install-jdk@v1
# with:
# version: '11'
# architecture: x64
# source: './buildJDK/OpenJDK11U-jdk_x64_linux_hotspot_11.0.6_10.tar.gz'
# targets: 'JDK_11'
# archiveExtension: '.tar'
# - name: AQA
# uses: adoptium/run-aqa@v1
# with:
# version: '11'
# jdksource: 'install-jdk'
# build_list: 'openjdk'
# target: '_jdk_math'
###########################################################################
#
# Case three:
# Workflow:
# Step 1: AdoptOpenJDK/install-jdk action install JDK by a url
# Step 2: run-aqa action (Note: both action is temporary personal branch
# Test reference:
# https://github.com/sophia-guo/runaqaTest/runs/603715783?check_suite_focus=true
#
###########################################################################
# name: "test jDK installed by buildJDK action, first test with http://"
# on: # rebuild any PRs and main branch changes
# push:
#
# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: AdoptOpenJDK/install-jdk@v1
# with:
# version: '11'
# architecture: x64
# source: 'https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.6_10.tar.gz'
# archiveExtension: '.tar'
# - name: AQA
# uses: adoptium/run-aqa@v1
# with:
# version: '11'
# jdksource: 'install-jdk'
# build_list: 'openjdk'
# target: '_jdk_math'
###########################################################################
#
# Case four:
# Workflow:
# Step 1: AdoptOpenJDK/install-jdk action install JDK by nightly|releases
# Step 2: run-aqa action
# Test reference:
# https://github.com/sophia-guo/runaqaTest/runs/603730743?check_suite_focus=true
#
###########################################################################
# name: "test jDK installed by AdoptOpenJDK/install-jdk nightly|releases"
# on: # rebuild any PRs and main branch changes
# push:
#
# jobs:
# build:
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: ubuntu-latest #[ubuntu-latest, macos-latest] TODO: investigate issue with Mac
# steps:
# - uses: actions/checkout@v1
# - uses: AdoptOpenJDK/install-jdk@v1
# with:
# version: '11'
# source: 'nightly'
# impl: 'openj9'
# - name: AQA
# uses: adoptium/run-aqa@v1
# with:
# version: '11'
# jdksource: 'install-jdk'
# build_list: 'openjdk'
# target: '_jdk_math'
###########################################################################
#
# Case five:
# Workflow:
# Step 1: run-aqa action against github-hosted machine installed JDK
# Test reference:
# https://github.com/sophia-guo/runaqaTest/actions/runs/83442029
#
###########################################################################
# name: "test jDK installed by AdoptOpenJDK/install-jdk nightly|releases"
# on: # rebuild any PRs and main branch changes
# push:
#
# jobs:
# build:
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, macos-latest]
# steps:
# - uses: actions/checkout@v1
# - name: AQA
# uses: adoptium/run-aqa@v1
# with:
# version: '11'
# jdksource: 'github-hosted'
# build_list: 'openjdk'
# target: '_jdk_math'