Skip to content

Commit 0904be6

Browse files
Migrate get-distribution-variants to docker-actions [DI-580] (#29)
See hazelcast/hazelcast-docker#1165 Changes: - workflow migrated to composite action to match repo style - output inlined _Partially addresses_: [DI-580](https://hazelcast.atlassian.net/browse/DI-580) [DI-580]: https://hazelcast.atlassian.net/browse/DI-580?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Łukasz Dziedziul <[email protected]>
1 parent 0c9ea7e commit 0904be6

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test get-distribution-classifiers action
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
get:
8+
outputs:
9+
distribution-classifiers: ${{ steps.distribution-classifiers.outputs.classifiers }}
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v6
14+
15+
- id: distribution-classifiers
16+
uses: ./get-distribution-classifiers
17+
18+
# Doesn't explicitly assert, but validates that the output is valid for matrix consumption
19+
test:
20+
runs-on: ubuntu-latest
21+
needs:
22+
- get
23+
strategy:
24+
matrix:
25+
classifier: ${{ fromJSON(needs.get.outputs.distribution-classifiers) }}
26+
steps:
27+
- run: echo "classifier=${{ matrix.classifier }}"
28+

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
test-download-hz-dist:
2323
uses: ./.github/workflows/test-download-hz-dist.yml
2424

25+
test-get-distribution-classifiers:
26+
uses: ./.github/workflows/test-get-distribution-classifiers.yml
27+
2528
test-get-hz-versions:
2629
uses: ./.github/workflows/test-get-hz-versions.yml
2730

@@ -45,6 +48,7 @@ jobs:
4548
- test-check-if-latest-lts-release
4649
- test-check-redhat-service-status
4750
- test-download-hz-dist
51+
- test-get-distribution-classifiers
4852
- test-get-hz-versions
4953
- test-get-supported-jdks
5054
- test-get-supported-platforms
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Get distribution classifiers
2+
3+
outputs:
4+
classifiers:
5+
value: '["slim", ""]'
6+
7+
runs:
8+
using: "composite"
9+
steps:
10+
- shell: bash
11+
run: exit 0

0 commit comments

Comments
 (0)