-
Notifications
You must be signed in to change notification settings - Fork 0
170 lines (158 loc) · 5.02 KB
/
e2e-validation.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
######################################################################
#
# End-to-end validation
#
# Validate that the Action can be run on a variety of environments
# and configurations to ensure that it will behave as expected.
# Tests include a variety of versions (including "latest") on
# different operating systems. Also validates side-by-side
# installations of multiple versions of the tools.
#
######################################################################
name: End-to-end validation
on:
push:
branches:
- main
- releases/*
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
setup-tool-check-versions:
name: Setup ${{ matrix.version }} (${{matrix.edition}}) - ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [macos, windows, ubuntu]
edition:
- community
- enterprise
version:
- 10.9.0
- 10.10.0
- 10.11.1
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: setup-tool
uses: ./
id: setup-tool
with:
version: ${{ matrix.version }}
edition: ${{ matrix.edition }}
- name: Verify Install
run: ./test/verify-version.sh "${{ matrix.version }}" "${{ steps.setup-tool.outputs.path }}"
shell: bash
setup-tool-check-latest:
name: Setup latest (${{matrix.edition}}) - ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [macos, windows, ubuntu]
edition:
- community
- enterprise
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: setup-tool
uses: ./
id: setup-tool
with:
version: latest
edition: ${{ matrix.edition }}
- name: Verify Install
run: ./test/verify-version.sh "${{ steps.setup-tool.outputs.version }}" "${{ steps.setup-tool.outputs.path }}"
shell: bash
setup-tool-check-java:
name: Setup Java latest (${{matrix.edition}}) - ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [macos, windows, ubuntu]
edition:
- community
- enterprise
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: setup-java
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b
with:
distribution: 'zulu'
java-version: '21'
- name: setup-tool
uses: ./
id: setup-tool
with:
version: 10.8.1
architecture: java
edition: ${{ matrix.edition }}
- name: Verify Install
run: ./test/verify-version.sh "10.8.1" "${{ steps.setup-tool.outputs.path }}"
shell: bash
setup-tool-check-sbs:
name: Setup side by side - ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [macos, windows, ubuntu]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: setup-java
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b
with:
distribution: 'zulu'
java-version: '21'
- name: Setup community
uses: ./
id: setup-tool-community
with:
version: latest
edition: community
- name: Verify Community Install
run: ./test/verify-version.sh "${{ steps.setup-tool-community.outputs.version }}" "${{ steps.setup-tool-community.outputs.path }}"
shell: bash
- name: Setup Java Community
uses: ./
id: setup-tool-java-community
with:
version: latest
architecture: java
edition: community
- name: Verify Java Community Install
run: ./test/verify-version.sh "${{ steps.setup-tool-java-community.outputs.version }}" "${{ steps.setup-tool-java-community.outputs.path }}"
shell: bash
- name: Setup enterprise
uses: ./
id: setup-tool-enterprise
with:
version: latest
edition: enterprise
- name: Verify Enterprise Install
run: ./test/verify-version.sh "${{ steps.setup-tool-enterprise.outputs.version }}" "${{ steps.setup-tool-enterprise.outputs.path }}"
shell: bash
- name: Setup Java Community
uses: ./
id: setup-tool-java-enterprise
with:
version: latest
architecture: java
edition: enterprise
- name: Verify Java Enterprise Install
run: ./test/verify-version.sh "${{ steps.setup-tool-java-enterprise.outputs.version }}" "${{ steps.setup-tool-java-enterprise.outputs.path }}"
shell: bash