Skip to content

Commit

Permalink
fix: test (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoieni authored May 5, 2024
1 parent 0e174e2 commit d4a46b5
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,40 +51,14 @@ jobs:
releases_length=$(echo "$RELEASES" | jq 'length')
echo "releases_length: $releases_length"
if [ "$releases_length" != "1" ]; then
echo "too many releases"
exit 1
fi
release_version=$(echo "$RELEASES" | jq -r '.[0].version')
echo "release_version: $release_version"
if [ "$release_version" != "0.1.0" ]; then
echo "bad version"
exit 1
fi
echo ${{ fromJSON(steps.release-plz.outputs.releases) }}
if [ "$release_version" != ${{ fromJSON(steps.release-plz.outputs.releases)[0].version }} ]; then
echo "bad version (fromJSON)"
exit 1
fi
release_tag=$(echo "$RELEASES" | jq -r '.[0].tag')
echo "release_tag: $release_tag"
if [ "$release_tag" != "v0.1.0" ]; then
echo "bad tag"
exit 1
fi
release_package_name=$(echo "$RELEASES" | jq -r '.[0].package_name')
echo "release_package_name: $release_package_name"
if [ "$release_package_name" != "marco-test-one" ]; then
echo "bad package name"
if [ "$releases_length" != "0" ]; then
echo "expected no releases"
exit 1
fi
prs_length=$(echo "$PRS" | jq 'length')
echo "prs_length: $prs_length"
if [ "$prs_length" != "0" ]; then
echo "too many prs"
echo "expected no prs"
exit 1
fi

0 comments on commit d4a46b5

Please sign in to comment.