-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest-check-if-latest-lts-release.yml
More file actions
57 lines (46 loc) · 1.83 KB
/
test-check-if-latest-lts-release.yml
File metadata and controls
57 lines (46 loc) · 1.83 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
name: Test check-if-latest-lts-release action
on:
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout 'hazelcast-docker'
uses: actions/checkout@v6
with:
repository: hazelcast/hazelcast-docker
fetch-depth: 0
- name: Checkout repository
uses: actions/checkout@v6
with:
path: docker-actions
- name: Run check-if-latest-lts-release 5.5.0
id: check-if-latest-lts-release-5_5_0
uses: ./docker-actions/check-if-latest-lts-release
with:
hz_version: 5.5.0
- name: Run check-if-latest-lts-release 5.5.9
id: check-if-latest-lts-release-5_5_9
uses: ./docker-actions/check-if-latest-lts-release
with:
hz_version: 5.5.9
- name: Run check-if-latest-lts-release 5.6.0
id: check-if-latest-lts-release-5_6_0
uses: ./docker-actions/check-if-latest-lts-release
with:
hz_version: 5.6.0
- name: Test
run: |
set -o errexit -o nounset -o pipefail ${RUNNER_DEBUG:+-x}
source /dev/stdin <<< "$(curl --silent https://raw.githubusercontent.com/hazelcast/assert.sh/main/assert.sh)"
TESTS_RESULT=0
assert_equals() {
local expected=$1
local actual=$2
local msg="Should be equal to ${expected}"
assert_eq "$expected" "$actual" "$msg" && log_success "$msg" || TESTS_RESULT=$?
}
assert_equals "false" "${{ steps.check-if-latest-lts-release-5_5_0.outputs.is_latest_lts }}"
assert_equals "true" "${{ steps.check-if-latest-lts-release-5_5_9.outputs.is_latest_lts }}"
assert_equals "false" "${{ steps.check-if-latest-lts-release-5_6_0.outputs.is_latest_lts }}"
assert_eq 0 "$TESTS_RESULT" "All tests should pass"