oasdiff/oasdiff-action/breaking@v0.0.16 #252
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Test oasdiff actions' | |
on: | |
pull_request: | |
push: | |
jobs: | |
oasdiff_breaking_matching_delimiter_not_found: | |
runs-on: ubuntu-latest | |
name: Test breaking action with petsotre to validate no error of unable to process file command 'output' successfully and invalid value and matching delimiter not found | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Running breaking action with petsotre to validate no error of unable to process file command 'output' successfully and invalid value and matching delimiter not found | |
id: test_breaking_changes_matching_delimiter_not_found | |
uses: oasdiff/oasdiff-action/breaking@v0.0.16 | |
with: | |
base: 'specs/petstore-base.yaml' | |
revision: 'specs/petstore-revision.yaml' | |
fail-on-diff: false | |
- name: Test breaking changes action output | |
run: | | |
delimiter=$(cat /proc/sys/kernel/random/uuid | tr -d '-') | |
output=$(cat <<-$delimiter | |
${{ steps.test_breaking_changes_matching_delimiter_not_found.outputs.breaking }} | |
$delimiter | |
) | |
if [ "$output" != "9 breaking changes: 6 error, 3 warning" ]; then | |
echo "Expected output '9 breaking changes: 6 error, 3 warning' but got '$output'" >&2 | |
exit 1 | |
fi |