Skip to content

Commit

Permalink
Add release notes and new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bgandon committed Dec 5, 2024
1 parent c453be1 commit 044e10a
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/release_notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Improvements

- Built resource image on top of Alpine 3.20.3
- Added new Concourse tests on version families `3.0`, `3.1`, and `3.2`
51 changes: 51 additions & 0 deletions ci/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,57 @@ jobs:
failure="true"
fi
version_family="3.0"
latest_version_json=$(
jq --null-input \
--arg "family" "${version_family}" \
'{ "source": { "family": $family } }' \
| /opt/resource/check
)
latest_version=$(jq --raw-output '.[0].version' <<< "${latest_version_json}")
if [[ ${latest_version} != ${version_family}* ]]; then
echo >&2 "FAIL: expected version to start with '${version_family}', but got '${latest_version}'."
failure="true"
fi
version_family="3.1"
latest_version_json=$(
jq --null-input \
--arg "family" "${version_family}" \
'{ "source": { "family": $family } }' \
| /opt/resource/check
)
latest_version=$(jq --raw-output '.[0].version' <<< "${latest_version_json}")
if [[ ${latest_version} != ${version_family}* ]]; then
echo >&2 "FAIL: expected version to start with '${version_family}', but got '${latest_version}'."
failure="true"
fi
version_family="3.2"
latest_version_json=$(
jq --null-input \
--arg "family" "${version_family}" \
'{ "source": { "family": $family } }' \
| /opt/resource/check
)
latest_version=$(jq --raw-output '.[0].version' <<< "${latest_version_json}")
if [[ ${latest_version} != ${version_family}* ]]; then
echo >&2 "FAIL: expected version to start with '${version_family}', but got '${latest_version}'."
failure="true"
fi
if [[ ${failure} == true ]]; then
exit 1
fi
Expand Down

0 comments on commit 044e10a

Please sign in to comment.